adding null check for jobTotals in case jobId was not found

This commit is contained in:
momo 2015-09-11 15:16:31 -04:00
parent 0962851a4b
commit 97a244fc86

View File

@ -338,7 +338,7 @@ public class HashDbIngestModule implements FileIngestModule {
List<HashDb> knownBadHashSets, List<HashDb> 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("<table border='0' cellpadding='4' width='280'>"); //NON-NLS