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 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) ...
Created attachment 68471 [details] ide log file
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
Reviewed
verified in build 20080828