mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-13 16:36:15 +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
|
@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.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user