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 20080908. This should be a regression somewhere. NPE did not occur in previous builds when tested. - create a class diagram - create and name an interface element - right click on the interface and select Show->As Icon - copy the iconic interface and paste it on the same diagram - create a new class diagram - paste the copied buffer to the new class diagram throws the following NPE. AssertionError was also thrown. See ide log for complete exception. SEVERE [global] java.lang.NullPointerException at org.netbeans.modules.uml.diagrams.nodes.InterfaceLollipopWidget.showingView(InterfaceLollipopWidget.java:105) at org.netbeans.modules.uml.drawingarea.view.SwitchableWidget.switchTo(SwitchableWidget.java:161) at org.netbeans.modules.uml.drawingarea.view.SwitchableWidget.duplicate(SwitchableWidget.java:464) at org.netbeans.modules.uml.drawingarea.actions.SceneAcceptProvider.accept(SceneAcceptProvider.java:296) at org.netbeans.modules.uml.drawingarea.actions.SceneAcceptProvider.accept(SceneAcceptProvider.java:205) at org.netbeans.modules.uml.drawingarea.actions.DiagramSceneAcceptAction.mouseClicked(DiagramSceneAcceptAction.java:78) at org.netbeans.api.visual.action.WidgetAction$Chain.mouseClicked(WidgetAction.java:752) ...
Created attachment 69363 [details] ide log file
This might be a regression from fix in issue 137774 since this problem was not in build 20080904.
Fixed http://hg.netbeans.org/uml-main/rev/4061e2b0bafc
Integrated into 'main-golden', will be available in build *200809120201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/4061e2b0bafc User: jyothivasa@netbeans.org Log: Fix for #146593 copy/paste iconic widget to a different diagram works fine.
Reviewed
verified in build 20080915.