mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
5661 fix bug with accessing list of files in group
This commit is contained in:
parent
56da5d092b
commit
00c7f9fd72
@ -52,7 +52,7 @@ class FileGroup implements Comparable<FileGroup> {
|
|||||||
* @param file The ResultFile to add to the FileGroup
|
* @param file The ResultFile to add to the FileGroup
|
||||||
*/
|
*/
|
||||||
void addFile(ResultFile file) {
|
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
|
ResultFile existingCopy = files.get(files.indexOf(file)); //get the copy of this which exists in the list
|
||||||
existingCopy.addDuplicate(file.getFirstInstance());
|
existingCopy.addDuplicate(file.getFirstInstance());
|
||||||
} else {
|
} else {
|
||||||
@ -82,7 +82,7 @@ class FileGroup implements Comparable<FileGroup> {
|
|||||||
* Sort all the files in the group
|
* Sort all the files in the group
|
||||||
*/
|
*/
|
||||||
void sortFiles(FileSorter sorter) {
|
void sortFiles(FileSorter sorter) {
|
||||||
Collections.sort(getFiles(), sorter);
|
Collections.sort(files, sorter);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
x
Reference in New Issue
Block a user