From 898448abc58448b33cf95eec28daa1430ce64afc Mon Sep 17 00:00:00 2001 From: Brian Sweeney Date: Tue, 24 Jul 2018 08:27:30 -0600 Subject: [PATCH] npe in certain situations fixed --- .../sleuthkit/autopsy/commonfilesearch/IntraCasePanel.java | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/commonfilesearch/IntraCasePanel.java b/Core/src/org/sleuthkit/autopsy/commonfilesearch/IntraCasePanel.java index c88537cb17..fd83792c34 100644 --- a/Core/src/org/sleuthkit/autopsy/commonfilesearch/IntraCasePanel.java +++ b/Core/src/org/sleuthkit/autopsy/commonfilesearch/IntraCasePanel.java @@ -20,6 +20,7 @@ package org.sleuthkit.autopsy.commonfilesearch; import java.util.Collections; +import java.util.HashMap; import java.util.Map; import java.util.Map.Entry; import javax.swing.ComboBoxModel; @@ -41,7 +42,6 @@ public class IntraCasePanel extends javax.swing.JPanel { private String selectedDataSource; private ComboBoxModel dataSourcesList = new DataSourceComboBoxModel(); private Map dataSourceMap; - private CommonAttributePanel parent; private String errorMessage; @@ -51,10 +51,7 @@ public class IntraCasePanel extends javax.swing.JPanel { public IntraCasePanel() { initComponents(); this.errorMessage = ""; - } - - public void setParent(CommonAttributePanel parent){ - this.parent = parent; + this.dataSourceMap = new HashMap<>(); } public boolean isSingleDataSource(){