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:
Richard Cordovano 2019-10-02 13:56:47 -04:00 committed by GitHub
commit 441fc607e5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -567,7 +567,7 @@ public class DataResultFilterNode extends FilterNode {
// is a DirectoryTreeFilterNode that wraps the dataModelNode. We need
// to set that wrapped node as the selection and root context of the
// directory tree explorer manager (sourceEm)
if(sourceEm == null) {
if(sourceEm == null || sourceEm.getSelectedNodes().length == 0) {
return null;
}
final Node currentSelectionInDirectoryTree = sourceEm.getSelectedNodes()[0];