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.

Bug 146713 - a11y: Shift+F10 after deleting an extension point throws NPE
Summary: a11y: Shift+F10 after deleting an extension point throws NPE
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Usecase (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Thuy.d Nguyen
URL:
Keywords: A11Y, REGRESSION
Depends on:
Blocks:
 
Reported: 2008-09-09 22:23 UTC by Peter Lam
Modified: 2008-09-15 19:13 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (26.18 KB, text/plain)
2008-09-09 22:24 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-09-09 22:23:28 UTC
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)
...
Comment 1 Peter Lam 2008-09-09 22:24:18 UTC
Created attachment 69461 [details]
ide log file
Comment 2 Peter Lam 2008-09-09 22:27:00 UTC
this is a regression. there no NPE for this scenario in previous build 20080902 verified in.
Comment 3 Thuy.d Nguyen 2008-09-11 19:19:34 UTC
This issue also occurs when you delete an attribute or Operation then Shift+F10.
Comment 4 Thuy.d Nguyen 2008-09-12 17:57:47 UTC
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.
Comment 5 Trey Spiva 2008-09-12 18:32:18 UTC
Reviewed
Comment 6 Quality Engineering 2008-09-13 17:11:26 UTC
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.
Comment 7 Peter Lam 2008-09-15 19:13:33 UTC
verified in build 20080915 on use case extension points and class attributes and operations.