From 00c7f9fd724dffe18eae46b65b58b1b19e492b76 Mon Sep 17 00:00:00 2001 From: William Schaefer Date: Wed, 4 Dec 2019 17:40:01 -0500 Subject: [PATCH] 5661 fix bug with accessing list of files in group --- Core/src/org/sleuthkit/autopsy/filequery/FileGroup.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Core/src/org/sleuthkit/autopsy/filequery/FileGroup.java b/Core/src/org/sleuthkit/autopsy/filequery/FileGroup.java index f82c5c88bf..c80dcc35c7 100644 --- a/Core/src/org/sleuthkit/autopsy/filequery/FileGroup.java +++ b/Core/src/org/sleuthkit/autopsy/filequery/FileGroup.java @@ -52,7 +52,7 @@ class FileGroup implements Comparable { * @param file The ResultFile to add to the FileGroup */ void addFile(ResultFile file) { - if (getFiles().contains(file)) { + if (files.contains(file)) { ResultFile existingCopy = files.get(files.indexOf(file)); //get the copy of this which exists in the list existingCopy.addDuplicate(file.getFirstInstance()); } else { @@ -82,7 +82,7 @@ class FileGroup implements Comparable { * Sort all the files in the group */ void sortFiles(FileSorter sorter) { - Collections.sort(getFiles(), sorter); + Collections.sort(files, sorter); } /**