Skip to content

Commit

Permalink
Merge pull request #81 from diging/develop
Browse files Browse the repository at this point in the history
fix for no storage id
  • Loading branch information
jdamerow authored Oct 22, 2019
2 parents d378957 + 4ad0b18 commit 6fa2baf
Showing 1 changed file with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,11 @@ public String getFileDownloadPath(IFile file) {
return null;
}

if (file.getStorageId() == null) {
messageHandler.handleMessage("Could not download file.", "Could not download file. No storage id present for " + file.getId() + ".", MessageType.ERROR);
return null;
}

return nepomukUrl + propertyManager.getProperty(Properties.NEPOMUK_FILES_ENDPOINT).replace("{0}", file.getStorageId());
}
}

0 comments on commit 6fa2baf

Please sign in to comment.