mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
don't add null virtual files to selection
This commit is contained in:
+4
-1
@@ -426,7 +426,10 @@ public class FileSystemTreeImpl implements FileSystemTree {
|
||||
final Object object = ((DefaultMutableTreeNode)last).getUserObject();
|
||||
if (object instanceof FileNodeDescriptor) {
|
||||
final FileElement element = ((FileNodeDescriptor)object).getElement();
|
||||
selection.add(element.getFile());
|
||||
final VirtualFile file = element.getFile();
|
||||
if (file != null) {
|
||||
selection.add(file);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user