mirror of
https://github.com/overcuriousity/autopsy-flatpak.git
synced 2025-07-12 16:06:15 +00:00
Merge pull request #5304 from sleuthkit/1370_exeption
Fixed out of bounds exception when multiple nodes were selected in gr…
This commit is contained in:
commit
441fc607e5
@ -567,7 +567,7 @@ public class DataResultFilterNode extends FilterNode {
|
|||||||
// is a DirectoryTreeFilterNode that wraps the dataModelNode. We need
|
// is a DirectoryTreeFilterNode that wraps the dataModelNode. We need
|
||||||
// to set that wrapped node as the selection and root context of the
|
// to set that wrapped node as the selection and root context of the
|
||||||
// directory tree explorer manager (sourceEm)
|
// directory tree explorer manager (sourceEm)
|
||||||
if(sourceEm == null) {
|
if(sourceEm == null || sourceEm.getSelectedNodes().length == 0) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
final Node currentSelectionInDirectoryTree = sourceEm.getSelectedNodes()[0];
|
final Node currentSelectionInDirectoryTree = sourceEm.getSelectedNodes()[0];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user