mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 00:16:16 +00:00
NPE in case of removed photorec carver job handled
This commit is contained in:
parent
cac67068d1
commit
384bcd297f
@ -239,7 +239,7 @@ final class PhotoRecCarverFileIngestModule implements FileIngestModule {
|
||||
*/
|
||||
@Override
|
||||
public void shutDown() {
|
||||
if (refCounter.decrementAndGet(this.context.getJobId()) == 0) {
|
||||
if (this.context != null && refCounter.decrementAndGet(this.context.getJobId()) == 0) {
|
||||
try {
|
||||
// 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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user