From fa15e7e549208d303eb03cd3ca17a84a634332de Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Thu, 17 Oct 2019 18:05:24 -0400 Subject: [PATCH] 5368 make codacy happy hopefully --- Core/src/org/sleuthkit/autopsy/filequery/FileSearch.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Core/src/org/sleuthkit/autopsy/filequery/FileSearch.java b/Core/src/org/sleuthkit/autopsy/filequery/FileSearch.java index 930e67fad2..aa37c0f2af 100644 --- a/Core/src/org/sleuthkit/autopsy/filequery/FileSearch.java +++ b/Core/src/org/sleuthkit/autopsy/filequery/FileSearch.java @@ -663,7 +663,7 @@ class FileSearch { private static class ParentPathGroupKey extends GroupKey { private String parentPath; - private Long parentID = -1L; + private Long parentID; ParentPathGroupKey(ResultFile file) { if (file.getFirstInstance().getParentPath() != null) { @@ -673,9 +673,11 @@ class FileSearch { parentID = file.getFirstInstance().getParent().getId(); } catch (TskCoreException ingored) { parentPath = file.getFirstInstance().getParentPath(); + parentID = -1L; } } else { parentPath = ""; // NON-NLS + parentID = -1L; } }