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: NetBeans IDE Dev (Build 200710100000) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05 OS: Linux, 2.6.22-14-386, i386 User Comments: dragged around use case element in an unsaved use case diagram
Created attachment 50664 [details] stacktrace
Build: NetBeans IDE Dev (Build 200710100000) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05 OS: Linux, 2.6.22-14-386, i386 User Comments: right-clicking empty diagram background in unsaved use case diagram while having a use case selected
Created attachment 50665 [details] stacktrace
Build: NetBeans IDE Dev (Build 200710100000) VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05 OS: Linux, 2.6.22-14-386, i386 User Comments: right-clicking empty background in saved use-case diagram, no elements selected
Created attachment 50666 [details] stacktrace
Thanks for filing the issue. However, I'm unable to replicate the issue using the recent NB 6.0 builds on Ubuntu Linux platform. Looks like your NB build (200710100000) is quite old. You can try out the Beta 1 build or the recent daily build to see if you still can reproduce the issue.
ops, sorry for my blindness. I somehow viewed 200710100000 as 20070101 ;-( I will try again with today's build.
I just tried again with the latest beta 2 builds and still not able to reproduce the issue.
build 200710170000, full install: - created new UML "Platform Independent Model" project, named it "foo" - while prompted to create a new diagram, chose "Use Case", named it "GeneralUseCases" - empty or not, saved or not, the exception appears reproducibly as soon as I right-click empty space in the use case model: java.lang.NullPointerException at org.netbeans.modules.uml.codegen.action.GenerateCodeAction.enable(GenerateCodeAction.java:438) at org.openide.util.actions.NodeAction.isEnabled(NodeAction.java:202) at org.netbeans.modules.uml.ui.swing.drawingarea.ADDrawingAreaControl.addAddinMenus(ADDrawingAreaControl.java:10058) at [...] Any other reason that could be to blame for that? Platform dependent problem? Configuration issue? Some old files hanging around in .netbeans/dev/?
*** This issue has been marked as a duplicate of 115842 ***