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

Summary: NullPointerException at org.netbeans.modules.uml.drawingarea.actions.DiagramPopupMenuProvider.getPopupMenu
Product: uml Reporter: Sergey Petrov <sj-nb>
Component: GeneralAssignee: issues@uml <issues>
Status: NEW ---    
Severity: blocker CC: darkli, dmilotte
Priority: P3    
Version: 6.x   
Hardware: All   
OS: All   
URL: http://statistics.netbeans.org/exceptions/detail.do?id=137579
Issue Type: DEFECT Exception Reporter: 137579
Attachments: stacktrace
stacktrace

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