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.
Build: NetBeans IDE Dev (Build 200812040201) VM: Java HotSpot(TM) Client VM, 11.0-b12, Java(TM) SE Runtime Environment, 1.6.0_10-beta-b25 OS: Windows XP, 5.1, x86 User Comments: michaelnazarov: Opened State Diagram 1 from UMLProject-NB65-JavaPlatform project. Made few right clicks in area of "state1" element. Stacktrace: java.lang.NullPointerException at org.netbeans.modules.uml.diagrams.actions.state.ShowTransitionsAction.createContextAwareInstance(ShowTransitionsAction.java:70) at org.openide.util.Utilities.actionsToPopup(Utilities.java:2674) at org.netbeans.modules.uml.drawingarea.actions.DiagramPopupMenuProvider.getPopupMenu(DiagramPopupMenuProvider.java:200) at org.netbeans.modules.visual.action.PopupMenuAction.handleMouseEvent(PopupMenuAction.java:113) at org.netbeans.modules.visual.action.PopupMenuAction.mouseReleased(PopupMenuAction.java:89) at org.netbeans.api.visual.action.WidgetAction$Chain.mouseReleased(WidgetAction.java:790)
Created attachment 74513 [details] stacktrace
thanks for your report, did you forget to attach project? also can you try with 1.6.0.10 instead of 1.6.0_10-beta-b25?
I think I did not :) All projects linked from UML QE page: http://uml.netbeans.org/qa/nb65/SanityTests/UMLSanityTestSpecification.html Section "Diagram Contextual Menus and Toolbar Buttons" for this one. As for JDK -- it's possible later. I need to complete current testing now.
null check is added, result may be either perfect or disable menu items in some cases, but still better then exception. d2451b0113ea
Integrated into 'main-golden', will be available in build *200903181604* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/d2451b0113ea User: sergeyp@netbeans.org Log: fix #154561 - added null check, since root cause isn't known it may cause disabled menu items, but it's better then exceptions.