diff --git a/Core/src/org/sleuthkit/autopsy/filesearch/FileSearchPanel.java b/Core/src/org/sleuthkit/autopsy/filesearch/FileSearchPanel.java index 8bf624285f0..03c8e2424c9 100755 --- a/Core/src/org/sleuthkit/autopsy/filesearch/FileSearchPanel.java +++ b/Core/src/org/sleuthkit/autopsy/filesearch/FileSearchPanel.java @@ -303,14 +303,17 @@ private String getQuery() throws FilterValidationException { //String query = "SELECT " + tempQuery + " FROM tsk_files WHERE "; String query = ""; + String[] data = new String[20]; int i = 0; for (FileSearchFilter f : this.getEnabledFilters()) { String result = f.getPredicate(); if (!result.isEmpty()) { if (i > 0) { query += " AND (" + result + ")"; //NON-NLS + data[i] = result; } else { query += " (" + result + ")"; //NON-NLS + data[i] = result; } ++i; }