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 20080905 DnD the sequence diagram node to another sequence diagram is not allowed. However, Ctrl+Enter on the sequence diagram node to another diagram throws the following exception. See attached ide log file for complete exception. Ctrl+Enter on any other diagram node trying to add to the sequence diagram will also result in this exception. java.lang.NullPointerException at org.netbeans.modules.uml.diagrams.engines.SequenceDiagramEngine.processDrop(SequenceDiagramEngine.java:351) at org.netbeans.modules.uml.drawingarea.actions.DiagramInputkeyAction.processModelTreeNodes(DiagramInputkeyAction.java:239) at org.netbeans.modules.uml.drawingarea.actions.DiagramInputkeyAction.addToDiagram(DiagramInputkeyAction.java:209) at org.netbeans.modules.uml.drawingarea.actions.DiagramInputkeyAction.actionPerformed(DiagramInputkeyAction.java:100) at javax.swing.SwingUtilities.notifyAction(SwingUtilities.java:1636) at javax.swing.JComponent.processKeyBinding(JComponent.java:2849) at org.openide.windows.TopComponent.processKeyBinding(TopComponent.java:968) ...
Created attachment 69211 [details] ide log file
Fixed. changeset bee63c3c2c8c in uml-main details: http://hg.netbeans.org/uml-main?cmd=changeset;node=bee63c3c2c8c
This issue does not occur to other diagram types, because for other diagram types DefaultDiagramEngine::processDrop method just returns the dropElement itself and the element is later checked for null in the DiagramInputkeyAction::processModelTreeNodes method before it is further processed.
verified in build 20080908 on all diagram types to sequence diagram.