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 152795 - NullPointerException at org.netbeans.modules.uml.drawingarea.actions.DiagramPopupMenuProvider.getPopupMenu
Summary: NullPointerException at org.netbeans.modules.uml.drawingarea.actions.DiagramP...
Status: NEW
Alias: None
Product: uml
Classification: Unclassified
Component: General (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-11-08 20:05 UTC by Sergey Petrov
Modified: 2009-06-25 14:52 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter: 137579


Attachments
stacktrace (3.25 KB, text/plain)
2008-11-08 20:05 UTC, Sergey Petrov
Details
stacktrace (3.24 KB, text/plain)
2009-05-27 08:19 UTC, darkli
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Petrov 2008-11-08 20:05:24 UTC
Build: NetBeans IDE 6.5 RC2 (Build 200810270001)
VM: Java HotSpot(TM) Client VM, 1.5.0_15-b04, Java(TM) 2 Runtime Environment, Standard Edition, 1.5.0_15-b04
OS: Windows Vista, 6.0, x86

User Comments:
sergeyp: tried to copy attribute from one class to another |(with ctrl+drag&drop in project tree)
then try popup on attribute on a diagram



Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.uml.drawingarea.actions.DiagramPopupMenuProvider.getPopupMenu(DiagramPopupMenuProvider.java:144)
        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)
        at org.netbeans.api.visual.widget.SceneComponent$Operator$.operate(SceneComponent.java:553)
        at org.netbeans.api.visual.widget.SceneComponent.processLocationOperator(SceneComponent.java:330)
Comment 1 Sergey Petrov 2008-11-08 20:05:33 UTC
Created attachment 73549 [details]
stacktrace
Comment 2 Sergey Petrov 2008-11-13 12:07:45 UTC
//investigation: initial reason is fail to duplicate attribute:
CreationFactory can't create empty Presentation elements, reasons are unknown yet. may require extra time. it may have
sense to disable copy action in project tree for now (move will remains), thi way attributes/operations will work
exactly the same way as all other elements (all elements support move only in rpoject tree).
Comment 3 darkli 2009-05-27 08:19:10 UTC
Build: NetBeans IDE 6.7 Beta (Build 200904242137)
VM: Java HotSpot(TM) Client VM, 11.3-b02, Java(TM) SE Runtime Environment, 1.6.0_13-b03
OS: Windows Vista, 6.1, x86

User Comments: 


Stacktrace: 
java.lang.NullPointerException
        at org.netbeans.modules.uml.drawingarea.actions.DiagramPopupMenuProvider.getPopupMenu(DiagramPopupMenuProvider.java:141)
        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)
        at org.netbeans.api.visual.widget.SceneComponent$Operator$3.operate(SceneComponent.java:561)
        at org.netbeans.api.visual.widget.SceneComponent.processLocationOperator(SceneComponent.java:338)
Comment 4 darkli 2009-05-27 08:19:20 UTC
Created attachment 82836 [details]
stacktrace