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 145346 - NPE on moving container widget
Summary: NPE on moving container widget
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General Diagram (show other bugs)
Version: 6.x
Hardware: All All
: P1 blocker (vote)
Assignee: Trey Spiva
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-08-27 19:49 UTC by Yang Su
Modified: 2008-08-29 17:46 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Yang Su 2008-08-27 19:49:07 UTC
create a class diagram, drop a package, drop two contained widgets, create a connection in between the inner widgets.
Moving the package will result in

java.lang.NullPointerException
	at
org.netbeans.modules.uml.drawingarea.view.AlignWithMoveStrategyProvider.adjustControlPoints(AlignWithMoveStrategyProvider.java:297)
	at
org.netbeans.modules.uml.drawingarea.view.AlignWithMoveStrategyProvider.locationSuggested(AlignWithMoveStrategyProvider.java:108)
	at org.netbeans.modules.uml.diagrams.nodes.ContainerNode$2.locationSuggested(ContainerNode.java:121)
	at org.netbeans.modules.visual.action.MoveAction.move(MoveAction.java:115)
	at org.netbeans.modules.visual.action.MoveAction.mouseReleased(MoveAction.java:94)
Comment 1 Yang Su 2008-08-27 19:52:46 UTC
Same problem happens to any container widget, namely, package, activity group, activity partition and composite state,
the connection does not have to be bent. The regression is related to fix to issue 145331.
Comment 2 Trey Spiva 2008-08-27 22:32:04 UTC
Fixed

http://hg.netbeans.org/uml-main/rev/26ae2c350540
Comment 3 Trey Spiva 2008-08-28 18:34:05 UTC
Reviewed
Comment 4 Peter Lam 2008-08-29 17:46:27 UTC
verified in build 20080829