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 146387 - a11y: Ctrl+Enter on a sequence diagram node to a new sequence diagram throws NPE
Summary: a11y: Ctrl+Enter on a sequence diagram node to a new sequence diagram throws NPE
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: Diagram Sequence (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Thuy.d Nguyen
URL:
Keywords: A11Y
Depends on:
Blocks:
 
Reported: 2008-09-06 00:50 UTC by Peter Lam
Modified: 2008-09-08 19:30 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
ide log file (37.21 KB, text/plain)
2008-09-06 00:51 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-06 00:50:44 UTC
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)
...
Comment 1 Peter Lam 2008-09-06 00:51:32 UTC
Created attachment 69211 [details]
ide log file
Comment 2 Thuy.d Nguyen 2008-09-08 08:24:49 UTC
Fixed.
changeset bee63c3c2c8c in uml-main
details: http://hg.netbeans.org/uml-main?cmd=changeset;node=bee63c3c2c8c
Comment 3 Thuy.d Nguyen 2008-09-08 19:10:22 UTC
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. 
Comment 4 Peter Lam 2008-09-08 19:30:29 UTC
verified in build 20080908 on all diagram types to sequence diagram.