From 16727d6f02a65ed7c6d849d786dca9ea728582eb Mon Sep 17 00:00:00 2001 From: apriestman Date: Mon, 7 Jun 2021 11:29:54 -0400 Subject: [PATCH] Check for null files --- .../autopsy/recentactivity/ExtractZoneIdentifier.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/ExtractZoneIdentifier.java b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/ExtractZoneIdentifier.java index 393ecb010f..cdbacce33e 100755 --- a/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/ExtractZoneIdentifier.java +++ b/RecentActivity/src/org/sleuthkit/autopsy/recentactivity/ExtractZoneIdentifier.java @@ -211,6 +211,11 @@ final class ExtractZoneIdentifier extends Extract { * @return true if possibleDownloadFile corresponds to zoneFile, false otherwise. */ private boolean isZoneFileMatch(AbstractFile zoneFile, String expectedDownloadFileName, AbstractFile possibleDownloadFile) { + + if (zoneFile == null || possibleDownloadFile == null || expectedDownloadFileName == null) { + return false; + } + if (zoneFile.getMetaAddr() != possibleDownloadFile.getMetaAddr()) { return false; }