Skip to content

Commit

Permalink
Return true in action helper if file is online link
Browse files Browse the repository at this point in the history
otherwise it will be interpreted as path which obiously fails

Fixes #6507
  • Loading branch information
Siedlerchr committed May 22, 2020
1 parent ef2a31c commit 9287490
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/org/jabref/gui/actions/ActionHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,11 @@ public static BooleanExpression isFilePresentForSelectedEntry(StateManager state
List<LinkedFile> files = entry.getFiles();

if ((entry.getFiles().size() > 0) && stateManager.getActiveDatabase().isPresent()) {

if(files.get(0).isOnlineLink()) {
return true;
}

Optional<Path> filename = FileHelper.find(
stateManager.getActiveDatabase().get(),
files.get(0).getLink(),
Expand Down

0 comments on commit 9287490

Please sign in to comment.