Merge pull request #1570 from mhmdfy/hashdb-null-pointer

Hashdb null pointer
This commit is contained in:
Richard Cordovano 2015-09-14 13:36:05 -04:00
commit 780f0fa2ce

View File

@ -88,7 +88,7 @@ public class HashDbIngestModule implements FileIngestModule {
if (refCounter.incrementAndGet(jobId) == 1) {
// if first module for this job then post error msgs if needed
if (knownBadHashSets.isEmpty()) {
services.postMessage(IngestMessage.createWarningMessage(
HashLookupModuleFactory.getModuleName(),
@ -336,7 +336,8 @@ public class HashDbIngestModule implements FileIngestModule {
private static synchronized void postSummary(long jobId,
List<HashDb> knownBadHashSets, List<HashDb> knownHashSets) {
IngestJobTotals jobTotals = totalsForIngestJobs.remove(jobId);
IngestJobTotals jobTotals = getTotalsForIngestJobs(jobId);
totalsForIngestJobs.remove(jobId);
if ((!knownBadHashSets.isEmpty()) || (!knownHashSets.isEmpty())) {
StringBuilder detailsSb = new StringBuilder();