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 78369 - Copy/Paste Derivation Edge from one diagram to another throws NPE
Summary: Copy/Paste Derivation Edge from one diagram to another throws NPE
Status: RESOLVED DUPLICATE of bug 76547
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Class (show other bugs)
Version: 5.x
Hardware: PC Windows ME/2000
: P2 blocker (vote)
Assignee: _ jyothivasa
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-06-19 22:28 UTC by bugbridge
Modified: 2006-09-28 11:18 UTC (History)
1 user (show)

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 bugbridge 2006-06-19 22:28:11 UTC
Original submitter: akorostelev

Description
How to reproduce:
- Create UML project 
- Create two class diagrams "d1" and "d2"
- Place "Template Class" and "Derivation Classifier" on "d1" diagram
- Add "Derrivation Edge" from created "Derivation Classifier" to "Template Class"
- Select both objects with Edge between them and invoke "Edit | Cut" from popup menu
- Open second diagram called "d2"
- Invoke "Edit | Paste" command from popup menu opened on any free area of diagram
- click on free space to point where to place copied element

Result: 
The following Exception rises:
java.lang.NullPointerException
	at
com.embarcadero.uml.ui.products.ad.drawengines.ETNodeDrawEngine.resize(ETNodeDrawEngine.java:1458)
	at
com.embarcadero.uml.ui.products.ad.drawengines.ETNodeDrawEngine.sizeToContents(ETNodeDrawEngine.java:1635)
	at
com.embarcadero.uml.ui.products.ad.drawengines.ETDrawEngine.delayedSizeToContents(ETDrawEngine.java:663)
	at
com.embarcadero.uml.ui.support.applicationmanager.ProductGraphPresentation.reconnectPresentationElement(ProductGraphPresentation.java:199)
	at
com.embarcadero.uml.ui.swing.drawingarea.ADDrawingAreaControl.clonePresentationElements(ADDrawingAreaControl.java:3831)
	at
com.embarcadero.uml.ui.swing.drawingarea.ADDrawingAreaControl.crossDiagramPaste(ADDrawingAreaControl.java:3709)
	at
com.embarcadero.uml.ui.swing.drawingarea.diagramtools.CrossDiagramPasteTool.onMouseReleased(CrossDiagramPasteTool.java:46)
	at com.tomsawyer.editor.TSEWindowInputTool.mouseReleasedEvent(DashoA9*..)
	at com.tomsawyer.editor.TSEWindowInputTool.access$400(DashoA9*..)
	at com.tomsawyer.editor.g6.mouseReleased(DashoA9*..)
	at java.awt.AWTEventMulticaster.mouseReleased(AWTEventMulticaster.java:232)
	at java.awt.Component.processMouseEvent(Component.java:5488)
	at javax.swing.JComponent.processMouseEvent(JComponent.java:3126)
	at java.awt.Component.processEvent(Component.java:5253)
	at java.awt.Container.processEvent(Container.java:1966)
	at java.awt.Component.dispatchEventImpl(Component.java:3955)
	at java.awt.Container.dispatchEventImpl(Container.java:2024)
	at java.awt.Component.dispatchEvent(Component.java:3803)
	at java.awt.LightweightDispatcher.retargetMouseEvent(Container.java:4212)
	at java.awt.LightweightDispatcher.processMouseEvent(Container.java:3892)
	at java.awt.LightweightDispatcher.dispatchEvent(Container.java:3822)
	at java.awt.Container.dispatchEventImpl(Container.java:2010)
	at java.awt.Window.dispatchEventImpl(Window.java:1774)
	at java.awt.Component.dispatchEvent(Component.java:3803)
[catch] at java.awt.EventQueue.dispatchEvent(EventQueue.java:463)
	at
java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchThread.java:242)
	at
java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThread.java:163)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:157)
	at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:149)
	at java.awt.EventDispatchThread.run(EventDispatchThread.java:110)
Comment 1 Andrew Korostelev 2006-09-28 11:18:15 UTC
issue 76547 had the same cause as this bug.
fix of issue 76547 had fixed this too.


*** This issue has been marked as a duplicate of 76547 ***