Skip to content

Commit

Permalink
Fix #972 Correct boolean logic
Browse files Browse the repository at this point in the history
  • Loading branch information
stefan-kolb committed Mar 20, 2016
1 parent 30888e8 commit fba00a8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/java/net/sf/jabref/gui/desktop/os/Linux.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public void openFile(String filePath, String fileType) throws IOException {
ExternalFileType type = ExternalFileTypes.getInstance().getExternalFileTypeByExt(fileType);
String viewer;

if (type == null && !type.getOpenWithApplication().isPresent()) {
if (type == null || !type.getOpenWithApplication().isPresent()) {
viewer = "xdg-open";
} else {
viewer = type.getOpenWithApplication().get();
Expand Down

0 comments on commit fba00a8

Please sign in to comment.