From 6fd3ca7c86291099f4e4016a68fd71043886ffc7 Mon Sep 17 00:00:00 2001 From: esaunders Date: Mon, 25 Sep 2017 17:39:46 -0400 Subject: [PATCH] There can now be multiple Content lookups associated with a node so make sure we get the right one. --- .../autopsy/corecomponents/ThumbnailViewChildren.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/corecomponents/ThumbnailViewChildren.java b/Core/src/org/sleuthkit/autopsy/corecomponents/ThumbnailViewChildren.java index 50e15c8116..cd7e6e7f76 100755 --- a/Core/src/org/sleuthkit/autopsy/corecomponents/ThumbnailViewChildren.java +++ b/Core/src/org/sleuthkit/autopsy/corecomponents/ThumbnailViewChildren.java @@ -55,6 +55,7 @@ import org.sleuthkit.autopsy.corecomponents.ResultViewerPersistence.SortCriterio import static org.sleuthkit.autopsy.corecomponents.ResultViewerPersistence.loadSortCriteria; import org.sleuthkit.autopsy.coreutils.ImageUtils; import org.sleuthkit.autopsy.coreutils.Logger; +import org.sleuthkit.datamodel.AbstractFile; import org.sleuthkit.datamodel.Content; /** @@ -204,7 +205,7 @@ class ThumbnailViewChildren extends Children.Keys { private static boolean isSupported(Node node) { if (node != null) { - Content content = node.getLookup().lookup(Content.class); + Content content = node.getLookup().lookup(AbstractFile.class); if (content != null) { return ImageUtils.thumbnailSupported(content); } @@ -264,7 +265,7 @@ class ThumbnailViewChildren extends Children.Keys { private ThumbnailViewNode(Node wrappedNode, int thumbSize) { super(wrappedNode, FilterNode.Children.LEAF); this.thumbSize = thumbSize; - this.content = this.getLookup().lookup(Content.class); + this.content = this.getLookup().lookup(AbstractFile.class); } @Override