mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-17 10:17:41 +00:00
fix npe caused by attempting to select all files in an empty group
This commit is contained in:
parent
d57c16d97f
commit
33d1231c5c
@ -70,7 +70,11 @@ public class FileIDSelectionModel {
|
||||
public void clearAndSelectAll(Long... ids) {
|
||||
selected.clear();
|
||||
selected.addAll(Arrays.asList(ids));
|
||||
setLastSelected(ids[ids.length - 1]);
|
||||
if (ids.length > 0) {
|
||||
setLastSelected(ids[ids.length - 1]);
|
||||
} else {
|
||||
setLastSelected(null);
|
||||
}
|
||||
}
|
||||
|
||||
public void clearAndSelect(Long id) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user