Crash when parameter of constructor added
Issue #449
resolved
As introduced in #156, when updating the parameters of an operation, an argument in a message call needs to be removed or added.
However, when changing a constructor with a message view, a crash with a NPE occurs:
org.eclipse.emf.common.util.WrappedException: An exception was ignored during command execution
at org.eclipse.emf.common.command.BasicCommandStack.handleError(BasicCommandStack.java:281)
at org.eclipse.emf.common.command.BasicCommandStack.execute(BasicCommandStack.java:112)
at ca.mcgill.sel.core.controller.CoreBaseController.doExecute(CoreBaseController.java:102)
at ca.mcgill.sel.ram.controller.ClassController.createParameter(ClassController.java:593)
[...]
Caused by: java.lang.NullPointerException
at ca.mcgill.sel.ram.ui.views.message.MessageCallView.addParameterMapping(MessageCallView.java:196)
at ca.mcgill.sel.ram.ui.views.message.MessageCallView.notifyChanged(MessageCallView.java:349)
[...]
Comments (2)
-
reporter -
reporter - changed status to resolved
Should add tests for this, though.
- Log in to comment
References
#449: Ignores all messages that are from a reply and originate from a Gate.→ <<cset e19c9671f3c8>>