NPE in case of removed photorec carver job handled

This commit is contained in:
sidheshenator 2015-05-14 16:54:52 -04:00
parent cac67068d1
commit 384bcd297f

View File

@ -239,7 +239,7 @@ final class PhotoRecCarverFileIngestModule implements FileIngestModule {
*/ */
@Override @Override
public void shutDown() { public void shutDown() {
if (refCounter.decrementAndGet(this.context.getJobId()) == 0) { if (this.context != null && refCounter.decrementAndGet(this.context.getJobId()) == 0) {
try { try {
// The last instance of this module for an ingest job cleans out // The last instance of this module for an ingest job cleans out
// the working paths map entry for the job and deletes the temp dir. // the working paths map entry for the job and deletes the temp dir.