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 142976 - converting 6.1 activity diagram now throws NPE
Summary: converting 6.1 activity diagram now throws NPE
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ jyothivasa
URL:
Keywords: REGRESSION
Depends on: 141621
Blocks:
  Show dependency tree
 
Reported: 2008-08-05 22:52 UTC by Peter Lam
Modified: 2008-08-14 01:03 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (42.97 KB, text/plain)
2008-08-05 22:52 UTC, Peter Lam
Details
6.1 uml project (190.82 KB, application/x-compressed)
2008-08-05 22:56 UTC, Peter Lam
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Lam 2008-08-05 22:52:28 UTC
build 20080805. This is a regression since previous build did not throw NPE at conversion.

- download and unzip the attached 6.1 uml project
- start ide and open the attached 6.1 uml project
- expand the project, the Model node and the Activity diagram node
- open the Activity diagram
Result: the activity diagram is opened and a new diagram node is created but the 6.1 diagram node is still displayed.
The following NPE popped up. See attached ide log file for complete exception.

java.lang.NullPointerException
	at org.netbeans.modules.uml.drawingarea.persistence.XMIWriter.writeElement(XMIWriter.java:71)
	at org.netbeans.modules.uml.drawingarea.persistence.NodeWriter.beginScene(NodeWriter.java:150)
	at org.netbeans.modules.uml.drawingarea.persistence.NodeWriter.beginWriting(NodeWriter.java:107)
Comment 1 Peter Lam 2008-08-05 22:52:53 UTC
Created attachment 66625 [details]
ide log file
Comment 2 Peter Lam 2008-08-05 22:56:05 UTC
Created attachment 66626 [details]
6.1 uml project
Comment 3 _ jyothivasa 2008-08-12 10:13:17 UTC
Fixed
http://hg.netbeans.org/uml-main/rev/11d6260fe526
Comment 4 Trey Spiva 2008-08-13 18:10:36 UTC
Reviewed
Comment 5 Peter Lam 2008-08-14 01:03:53 UTC
verified in build 20080813.