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 146593 - copy/paste iconic interface to a different diagram throws NPE
Summary: copy/paste iconic interface to a different diagram throws NPE
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: _ jyothivasa
URL:
Keywords: REGRESSION
Depends on:
Blocks:
 
Reported: 2008-09-09 00:10 UTC by Peter Lam
Modified: 2008-09-16 01:52 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (39.38 KB, text/plain)
2008-09-09 00:10 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-09-09 00:10:14 UTC
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)
...
Comment 1 Peter Lam 2008-09-09 00:10:55 UTC
Created attachment 69363 [details]
ide log file
Comment 2 Peter Lam 2008-09-09 00:15:49 UTC
This might be a regression from fix in issue 137774 since this problem was not in build 20080904.
Comment 3 _ jyothivasa 2008-09-10 23:37:11 UTC
Fixed
http://hg.netbeans.org/uml-main/rev/4061e2b0bafc
Comment 4 Quality Engineering 2008-09-12 05:57:46 UTC
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.
Comment 5 Trey Spiva 2008-09-12 18:06:04 UTC
Reviewed
Comment 6 Peter Lam 2008-09-16 01:52:44 UTC
verified in build 20080915.