Skip to content

Commit

Permalink
fix #225: avoid NPE in indexed reports when enableHtmlReport = false
Browse files Browse the repository at this point in the history
  • Loading branch information
lfcnassif committed Aug 13, 2020
1 parent 2bfee53 commit 8ebf577
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -757,7 +757,9 @@ public File getFile() {
value = doc.get(IndexItem.SLEUTHID);
if (value != null && !value.isEmpty()) {
evidence.setSleuthId(Integer.valueOf(value));
evidence.setSleuthFile(sleuthCase.getContentById(Long.valueOf(value)));
if (sleuthCase != null) {
evidence.setSleuthFile(sleuthCase.getContentById(Long.valueOf(value)));
}
}

value = doc.get(IndexItem.ID_IN_SOURCE);
Expand Down

0 comments on commit 8ebf577

Please sign in to comment.