From 15d112e3e8340c39c9f779e6e249d43e5ead6e8e Mon Sep 17 00:00:00 2001 From: Ann Priestman Date: Tue, 28 Jan 2020 13:49:14 -0500 Subject: [PATCH] Check for empty database paths. --- .../experimental/configuration/SharedConfiguration.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Experimental/src/org/sleuthkit/autopsy/experimental/configuration/SharedConfiguration.java b/Experimental/src/org/sleuthkit/autopsy/experimental/configuration/SharedConfiguration.java index f9dba08034..0fa7f156ee 100644 --- a/Experimental/src/org/sleuthkit/autopsy/experimental/configuration/SharedConfiguration.java +++ b/Experimental/src/org/sleuthkit/autopsy/experimental/configuration/SharedConfiguration.java @@ -1243,9 +1243,9 @@ public class SharedConfiguration { HashDbManager hashDbManager = HashDbManager.getInstance(); hashDbManager.loadLastSavedConfiguration(); for (HashDbManager.HashDb hashDb : hashDbManager.getAllHashSets()) { - if (hashDb.hasIndexOnly()) { + if (hashDb.hasIndexOnly() && (!hashDb.getIndexPath().isEmpty())) { results.add(hashDb.getIndexPath()); - } else { + } else if (!hashDb.getDatabasePath().isEmpty()) { results.add(hashDb.getDatabasePath()); } }