npe in certain situations fixed

This commit is contained in:
Brian Sweeney 2018-07-24 08:27:30 -06:00
parent a41073542c
commit 898448abc5

View File

@ -20,6 +20,7 @@
package org.sleuthkit.autopsy.commonfilesearch; package org.sleuthkit.autopsy.commonfilesearch;
import java.util.Collections; import java.util.Collections;
import java.util.HashMap;
import java.util.Map; import java.util.Map;
import java.util.Map.Entry; import java.util.Map.Entry;
import javax.swing.ComboBoxModel; import javax.swing.ComboBoxModel;
@ -41,7 +42,6 @@ public class IntraCasePanel extends javax.swing.JPanel {
private String selectedDataSource; private String selectedDataSource;
private ComboBoxModel<String> dataSourcesList = new DataSourceComboBoxModel(); private ComboBoxModel<String> dataSourcesList = new DataSourceComboBoxModel();
private Map<Long, String> dataSourceMap; private Map<Long, String> dataSourceMap;
private CommonAttributePanel parent;
private String errorMessage; private String errorMessage;
@ -51,10 +51,7 @@ public class IntraCasePanel extends javax.swing.JPanel {
public IntraCasePanel() { public IntraCasePanel() {
initComponents(); initComponents();
this.errorMessage = ""; this.errorMessage = "";
} this.dataSourceMap = new HashMap<>();
public void setParent(CommonAttributePanel parent){
this.parent = parent;
} }
public boolean isSingleDataSource(){ public boolean isSingleDataSource(){