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 154561 - NullPointerException at org.netbeans.modules.uml.diagrams.actions.state.ShowTransitionsAction.createContextAwareInstance
Summary: NullPointerException at org.netbeans.modules.uml.diagrams.actions.state.ShowT...
Status: RESOLVED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram State (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@uml
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2008-12-04 07:51 UTC by Michael Nazarov
Modified: 2009-03-18 22:41 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 143885


Attachments
stacktrace (2.93 KB, text/plain)
2008-12-04 07:51 UTC, Michael Nazarov
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Michael Nazarov 2008-12-04 07:51:41 UTC
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)
Comment 1 Michael Nazarov 2008-12-04 07:51:45 UTC
Created attachment 74513 [details]
stacktrace
Comment 2 Sergey Petrov 2008-12-04 09:06:58 UTC
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?
Comment 3 Michael Nazarov 2008-12-04 09:14:32 UTC
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.
Comment 4 Sergey Petrov 2009-03-04 09:49:05 UTC
null check is added, result may be either perfect or disable menu items in some cases, but still better then exception.
d2451b0113ea
Comment 5 Quality Engineering 2009-03-18 22:41:57 UTC
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.