From 35a353fcdee81ee4e014c3e43cb6f61454d1cef6 Mon Sep 17 00:00:00 2001 From: Greg DiCristofaro Date: Tue, 23 May 2023 13:30:34 -0400 Subject: [PATCH] small fix --- .../casemodule/filecontent/CustomFileContentProvider.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/Core/src/org/sleuthkit/autopsy/casemodule/filecontent/CustomFileContentProvider.java b/Core/src/org/sleuthkit/autopsy/casemodule/filecontent/CustomFileContentProvider.java index ae33afb28b..529162727f 100644 --- a/Core/src/org/sleuthkit/autopsy/casemodule/filecontent/CustomFileContentProvider.java +++ b/Core/src/org/sleuthkit/autopsy/casemodule/filecontent/CustomFileContentProvider.java @@ -32,6 +32,7 @@ import org.sleuthkit.datamodel.AbstractFile; import org.sleuthkit.datamodel.FileContentStream; import org.sleuthkit.datamodel.FileContentStream.FileContentProvider; import org.sleuthkit.datamodel.TskCoreException; +import org.sleuthkit.datamodel.TskData.CollectedStatus; /** * @@ -93,6 +94,10 @@ public class CustomFileContentProvider implements FileContentProvider { @Override public FileContentStream getFileContentStream(AbstractFile af) throws TskCoreException { + if (af.getCollected() != CollectedStatus.YES_REPO) { + return null; + } + File localFile = getFilePath(af); if (localFile != null && localFile.exists() && localFile.isFile()) { try {