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 20080909 - create a use case diagram - create and name a use case element - insert and name a couple of extension points - while the use case is selected, press Shift+Up/Down Arrow key to select an extension point - press Shift+F10 to bring up the contextual menu for the extension point - select Delete from the menu - check the checkbox on the delete dialog, press OK Result: the selected extension point should already be deleted - now, press Shift+F10 to bring up the menu again Result: the following exception popped up. See attached ide log for complete exception. java.lang.NullPointerException at org.netbeans.modules.uml.drawingarea.actions.DiagramPopupMenuProvider.getPopupMenu(DiagramPopupMenuProvider.java:144) at org.netbeans.modules.visual.action.PopupMenuAction.keyPressed(PopupMenuAction.java:126) at org.netbeans.api.visual.action.WidgetAction$Chain.keyPressed(WidgetAction.java:923) at org.netbeans.api.visual.widget.SceneComponent$Operator$10.operate(SceneComponent.java:595) at org.netbeans.api.visual.widget.SceneComponent.processSingleOperator(SceneComponent.java:406) at org.netbeans.api.visual.widget.SceneComponent.processKeyOperator(SceneComponent.java:493) at org.netbeans.api.visual.widget.SceneComponent.processKeyOperator(SceneComponent.java:460) ...
Created attachment 69461 [details] ide log file
this is a regression. there no NPE for this scenario in previous build 20080902 verified in.
This issue also occurs when you delete an attribute or Operation then Shift+F10.
Fixed. changeset a7c03a81f343 in uml-main details: http://hg.netbeans.org/uml-main?cmd=changeset;node=a7c03a81f343 This change set contains the fix for issue 146256 as well.
Reviewed
Integrated into 'main-golden', will be available in build *200809131401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/a7c03a81f343 User: thuydn@netbeans.org Log: Fix issues #146713 and #146256. Focused objects and selected objects on scene need to be set after an object is created or delete.
verified in build 20080915 on use case extension points and class attributes and operations.