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 118500 - GenerateCode action's enable method throws NPE
Summary: GenerateCode action's enable method throws NPE
Status: RESOLVED DUPLICATE of bug 115842
Alias: None
Product: uml
Classification: Unclassified
Component: Code Generation (show other bugs)
Version: 6.x
Hardware: All All
: P3 blocker (vote)
Assignee: Craig Conover
URL: http://statistics.netbeans.org/except...
Keywords:
Depends on:
Blocks:
 
Reported: 2007-10-11 09:13 UTC by kawazu428
Modified: 2007-10-19 21:34 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 7193


Attachments
stacktrace (2.48 KB, text/plain)
2007-10-11 09:13 UTC, kawazu428
Details
stacktrace (2.48 KB, text/plain)
2007-10-11 09:18 UTC, kawazu428
Details
stacktrace (2.48 KB, text/plain)
2007-10-11 09:20 UTC, kawazu428
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kawazu428 2007-10-11 09:13:17 UTC
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
Comment 1 kawazu428 2007-10-11 09:13:25 UTC
Created attachment 50664 [details]
stacktrace
Comment 2 kawazu428 2007-10-11 09:18:05 UTC
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
Comment 3 kawazu428 2007-10-11 09:18:14 UTC
Created attachment 50665 [details]
stacktrace
Comment 4 kawazu428 2007-10-11 09:20:22 UTC
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
Comment 5 kawazu428 2007-10-11 09:20:30 UTC
Created attachment 50666 [details]
stacktrace
Comment 6 Peter Lam 2007-10-11 18:13:21 UTC
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. 
Comment 7 Peter Lam 2007-10-11 18:53:32 UTC
ops, sorry for my blindness. I somehow viewed 200710100000 as 20070101 ;-(
I will try again with today's build.
Comment 8 Peter Lam 2007-10-17 21:59:05 UTC
I just tried again with the latest beta 2 builds and still not able to reproduce the issue.
Comment 9 kawazu428 2007-10-18 11:29:38 UTC
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/?
Comment 10 kawazu428 2007-10-19 21:34:47 UTC

*** This issue has been marked as a duplicate of 115842 ***