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 120294 - NPE in GenerateCodeAction enable method
Summary: NPE in GenerateCodeAction enable method
Status: RESOLVED FIXED
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-28 22:07 UTC by Petr Chytil
Modified: 2007-11-01 00:22 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter: 9583


Attachments
stacktrace (2.83 KB, text/plain)
2007-10-28 22:07 UTC, Petr Chytil
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Chytil 2007-10-28 22:07:02 UTC
Build: NetBeans IDE Dev (Build 200710241200)
VM: Java HotSpot(TM) Client VM, 1.6.0_03-b05
OS: Linux, 2.6.22-14-generic, i386

User Comments: 
I was d'n'ding UML class diagrams between two UML projects.
Comment 1 Petr Chytil 2007-10-28 22:07:06 UTC
Created attachment 51855 [details]
stacktrace
Comment 2 Peter Lam 2007-10-30 01:17:52 UTC
I'm unable to reproduce this issue with the latest trunk build 20071029 when I drag-n-drop class diagram (saved and
unsaved) between 2 uml projets. The stack trace indicated generating code. Did I miss some steps?

Product Version: NetBeans IDE Dev (Build 20071029162919)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b02
System: Windows XP version 5.1 running on x86; Cp1252; en_US (nb)
Comment 3 Craig Conover 2007-11-01 00:22:46 UTC
Even if unreproducible, I added defensive code that will prevent the NPE and safely supply a default value.