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 145336 - RE-Op: reverse engineer operation to sequence diagram throws NPE
Summary: RE-Op: reverse engineer operation to sequence diagram throws NPE
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Reverse Engineering (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Sergey Petrov
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-08-27 18:24 UTC by Peter Lam
Modified: 2008-08-29 01:04 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (77.46 KB, text/plain)
2008-08-27 18:24 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-27 18:24:14 UTC
build 20080827

- create the sample uml project
- from the uml project, expand Model, bankpack, BankAccount, Operations
- right click on any operation and the following NPE is logged to ide log file (see attached ide log file for complete NPE).

java.lang.NullPointerException
	at java.awt.Rectangle.<init>(Rectangle.java:179)
	at org.netbeans.api.visual.widget.Widget.convertLocalToScene(Widget.java:1231)
	at
org.netbeans.modules.uml.diagrams.engines.SequenceDiagramEngine.getMimimumLifelinesBottom(SequenceDiagramEngine.java:1721)
	at org.netbeans.modules.uml.diagrams.engines.SequenceDiagramEngine.normalizeLifelines(SequenceDiagramEngine.java:1670)
...

- click on the generated sequence diagram will popped up the following NPE indefinitely and ide has to be exited. See
attached ide log file for complete NPE.

java.lang.NullPointerException
	at org.netbeans.api.visual.widget.Widget.isHitAt(Widget.java:1337)
	at org.netbeans.modules.uml.diagrams.nodes.sqd.LifelineWidget.isHitAt(LifelineWidget.java:260)
	at org.netbeans.api.visual.widget.SceneComponent.resolveContext(SceneComponent.java:521)
	at org.netbeans.api.visual.widget.SceneComponent.resolveContext(SceneComponent.java:516)
...
Comment 1 Peter Lam 2008-08-27 18:24:48 UTC
Created attachment 68471 [details]
ide log file
Comment 2 Sergey Petrov 2008-08-27 18:59:49 UTC
socond part seems to be issue with broken initialization of a diagram after first npe.
quick fix - added null check in normalize logic http://hg.netbeans.org/uml-main/rev/3659119efe74
Comment 3 Trey Spiva 2008-08-28 18:15:22 UTC
Reviewed
Comment 4 Peter Lam 2008-08-29 01:04:55 UTC
verified in build 20080828