From d8bd086ad7178c7fbe40c91b5a9da75a8ebe602f Mon Sep 17 00:00:00 2001 From: Brian Sweeney Date: Fri, 27 Apr 2018 08:34:42 -0600 Subject: [PATCH] is supported function for other occurrences tab of content viewer had a bug (needs to exit if abstract file cannot be derived from the node) --- .../contentviewer/DataContentViewerOtherCases.java | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/centralrepository/contentviewer/DataContentViewerOtherCases.java b/Core/src/org/sleuthkit/autopsy/centralrepository/contentviewer/DataContentViewerOtherCases.java index ef359d446f..3b25b4e797 100644 --- a/Core/src/org/sleuthkit/autopsy/centralrepository/contentviewer/DataContentViewerOtherCases.java +++ b/Core/src/org/sleuthkit/autopsy/centralrepository/contentviewer/DataContentViewerOtherCases.java @@ -481,6 +481,7 @@ public class DataContentViewerOtherCases extends javax.swing.JPanel implements D ArtifactKey instKey = new ArtifactKey(dataSource.getDeviceID(), filePath); if (!artifactInstances.containsKey(instKey)) { TskData.FileKnown knownStatus = fileMatch.getKnown(); + CorrelationAttributeInstance inst = new CorrelationAttributeInstance(caze, dataSource, filePath, "", knownStatus); artifactInstances.put(instKey, inst); } @@ -503,8 +504,13 @@ public class DataContentViewerOtherCases extends javax.swing.JPanel implements D @Override public boolean isSupported(Node node) { this.file = this.getAbstractFileFromNode(node); - // Is supported if this node has correlatable content (File, BlackboardArtifact) or other common files across datasources. - return !getCorrelationAttributesFromNode(node).isEmpty() && this.file.getSize() > 0; // TODO should we check for 0 size md5 instead + // Is supported if this node + // has correlatable content (File, BlackboardArtifact) OR + // other common files across datasources. + return + this.file != null && + this.file.getSize() > 0 && + !getCorrelationAttributesFromNode(node).isEmpty(); } @Override