mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-14 08:56:15 +00:00
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)
This commit is contained in:
parent
359900250d
commit
d8bd086ad7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user