Bug 341225 - NPE when undoing link creation
Summary: NPE when undoing link creation
Status: NEW
Alias: None
Product: GMF-Runtime
Classification: Modeling
Component: General (show other bugs)
Version: 2.3.0   Edit
Hardware: PC Windows 7
: P3 normal
Target Milestone: ---   Edit
Assignee: Project Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-03-29 08:47 EDT by Christian Waniek CLA
Modified: 2011-03-29 08:47 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Christian Waniek CLA 2011-03-29 08:47:22 EDT
I found this bug in the component diagrams of the uml2 tools (HEAD).

* Create two classes or components.
* Create an association between them
* Try to remove the association by pressing Ctrl-Z (the undo menu item is disabled)

I got the Error: Abnormal Workbench Condition
with the following Stacktrace

java.lang.NullPointerException
at org.eclipse.gmf.runtime.diagram.core.commands.SetConnectionEndsCommand.getAffectedFiles(SetConnectionEndsCommand.java:56)
at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.getAffectedFiles(CompositeCommand.java:791)
at org.eclipse.gmf.runtime.common.core.command.CompositeCommand.getAffectedFiles(CompositeCommand.java:791)
at org.eclipse.gmf.runtime.common.core.internal.command.FileModificationApprover.approveFileModification(FileModificationApprover.java:88)
at org.eclipse.gmf.runtime.common.core.internal.command.FileModificationApprover.proceedUndoing(FileModificationApprover.java:73)
at org.eclipse.core.commands.operations.DefaultOperationHistory.getUndoApproval(DefaultOperationHistory.java:822)
at org.eclipse.core.commands.operations.DefaultOperationHistory.doUndo(DefaultOperationHistory.java:411)
at org.eclipse.core.commands.operations.DefaultOperationHistory.undo(DefaultOperationHistory.java:1280)
at org.eclipse.ui.operations.UndoActionHandler.runCommand(UndoActionHandler.java:78)
[..]