Remove current case before getting datasources for common files case.

This commit is contained in:
Andrew Ziehl 2018-05-29 09:39:21 -07:00
parent f129cdc49f
commit d4d6594b4f

View File

@ -35,6 +35,7 @@ import javax.swing.SwingUtilities;
import javax.swing.SwingWorker;
import org.openide.explorer.ExplorerManager;
import org.openide.util.NbBundle;
import org.sleuthkit.autopsy.casemodule.Case;
import org.sleuthkit.autopsy.casemodule.NoCurrentCaseException;
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationCase;
import org.sleuthkit.autopsy.centralrepository.datamodel.CorrelationDataSource;
@ -356,7 +357,7 @@ public final class CommonFilesPanel extends javax.swing.JPanel {
protected Map<Integer, String> doInBackground() throws Exception {
List<CorrelationCase> dataSources = EamDb.getInstance().getCases();
dataSources.remove(EamDb.getInstance().getCase(Case.getCurrentCase()));
Map<Integer, String> caseMap = mapDataSources(dataSources);
return caseMap;