From 97a244fc86df1a214531f16dcc9e05caa016d590 Mon Sep 17 00:00:00 2001 From: momo Date: Fri, 11 Sep 2015 15:16:31 -0400 Subject: [PATCH] adding null check for jobTotals in case jobId was not found --- .../autopsy/modules/hashdatabase/HashDbIngestModule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbIngestModule.java b/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbIngestModule.java index 1632d02279..d4fd424901 100644 --- a/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbIngestModule.java +++ b/Core/src/org/sleuthkit/autopsy/modules/hashdatabase/HashDbIngestModule.java @@ -338,7 +338,7 @@ public class HashDbIngestModule implements FileIngestModule { List knownBadHashSets, List knownHashSets) { IngestJobTotals jobTotals = totalsForIngestJobs.remove(jobId); - if ((!knownBadHashSets.isEmpty()) || (!knownHashSets.isEmpty())) { + if (jobTotals != null && ((!knownBadHashSets.isEmpty()) || (!knownHashSets.isEmpty()))) { StringBuilder detailsSb = new StringBuilder(); //details detailsSb.append(""); //NON-NLS