mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
IDEA-160349 NPE fixed; don't try to delete already removed node
This commit is contained in:
@@ -773,6 +773,7 @@ public abstract class MasterDetailsComponent implements Configurable, DetailsCom
|
||||
final NamedConfigurable namedConfigurable = node.getConfigurable();
|
||||
final Object editableObject = namedConfigurable.getEditableObject();
|
||||
parentNode = (MyNode)node.getParent();
|
||||
if (parentNode == null) continue;
|
||||
idx = parentNode.getIndex(node);
|
||||
((DefaultTreeModel)myTree.getModel()).removeNodeFromParent(node);
|
||||
myHasDeletedItems |= wasObjectStored(editableObject);
|
||||
|
||||
Reference in New Issue
Block a user