This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Reproduced in build 060919_1 (JDK 1.6 Beta 2). To reproduce the bug: - create a new schema; - add a new global annotation component; - right-click the annotation in column view and place the mouse cursor over 'Refactor' submenu. java.lang.NullPointerException at org.netbeans.modules.xml.refactoring.RefactorRequest.getModel(RefactorRequest.java:109) at org.netbeans.modules.xml.refactoring.actions.SafelyRenameAction.enable(SafelyRenameAction.java:104) at org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:176) at org.openide.awt.Actions$MenuBridge.updateState(Actions.java:818) at org.openide.awt.Actions.connect(Actions.java:155) ...
I don't think the annotation should have a refactoring menu, or minimally this should be disabled.
the enable api in saferename and safedelete actions try to get model even though, the activated nodes are not referenceable. In such case refereceable is null and we get NPE, added check. fixed in safedelete and saferename actions.
*** Issue 85373 has been marked as a duplicate of this issue. ***
Verified in build 060921_1.