Crash when parameter of constructor added

Issue #449 resolved
Matthias Schoettle created an issue

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)

  1. Log in to comment