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.
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)
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 ***