mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
NPE (IDEA-120967)
This commit is contained in:
+1
-1
@@ -493,7 +493,7 @@ public class CustomizableActionsPanel {
|
||||
setText(((QuickList)userObject).getName());
|
||||
icon = AllIcons.Actions.QuickList;
|
||||
}
|
||||
else {
|
||||
else if (userObject != null) {
|
||||
throw new IllegalArgumentException("unknown userObject: " + userObject);
|
||||
}
|
||||
|
||||
|
||||
@@ -453,6 +453,7 @@ public class ActionsTreeUtil {
|
||||
node.add(childNode);
|
||||
}
|
||||
else {
|
||||
LOG.assertTrue(child != null);
|
||||
node.add(new DefaultMutableTreeNode(child));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user