Adding a feature to a goal immediately after creating the goal causes crash

Issue #565 new
Stacey Beard created an issue

Problem

When creating a new goal, the concern has to be closed and reopened before using the new goal. If a new feature is added to the goal immediately after creating it, TouchCORE throws an error and the back button (top-left <) disappears.

Steps to reproduce

  1. Open a concern.
  2. Create a new goal for the concern.
  3. Immediately open the new goal and add a feature to it. TouchCORE will throw an error and the back button will disappear.
  4. Re-launch TouchCORE and open the new goal. New features can now be added without a problem. Note that closing and re-opening the concern is generally sufficient to prevent this issue (before trying to add a feature to the goal).

Actual result

INFO - Destroyed scene: ca.mcgill.sel.ram.impl.AspectImpl@7f58a597
498922 [AWT-EventQueue-0] INFO .mt4j.sceneManagement.AbstractScene - Destroyed scene: ca.mcgill.sel.ram.impl.AspectImpl@7f58a597
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:106)
at ca.mcgill.sel.core.controller.FeatureImpactController.createFeatureImpact(FeatureImpactController.java:92)
at ca.mcgill.sel.ram.ui.views.containers.COREFeatureContainer$FeatureSelectorListener.elementSelected(COREFeatureContainer.java:88)
at ca.mcgill.sel.ram.ui.views.containers.COREFeatureContainer$FeatureSelectorListener.elementSelected(COREFeatureContainer.java:1)
at ca.mcgill.sel.ram.ui.components.RamListComponent.selectElement(RamListComponent.java:1046)
at ca.mcgill.sel.ram.ui.components.RamListComponent$InternalScrollableListHandler.processTapEvent(RamListComponent.java:235)
at ca.mcgill.sel.ram.ui.views.handler.BaseHandler.processGestureEvent(BaseHandler.java:91)
at ca.mcgill.sel.ram.ui.components.RamListComponent$InternalScrollableListHandler.processGestureEvent(RamListComponent.java:297)
at org.mt4j.input.GestureEventSupport.fire(GestureEventSupport.java:188)
at org.mt4j.input.GestureEventSupport.fireGestureEvt(GestureEventSupport.java:173)
at org.mt4j.components.MTComponent.processGestureEvent(MTComponent.java:3051)

Expected result

Goals should be immediately editable without reopening the concern.

Environment & Version

Windows 10 Home 1909

TouchCORE version:

Comments (0)

  1. Log in to comment