TracingView crashes when destroyed

Issue #332 resolved
Matthias Schoettle created an issue

Steps to reproduce:

  1. Open woven concern model
  2. Select a couple of elements in the TracingView
  3. Tap "back"

Result:

Exception in thread "Animation Thread" java.lang.NullPointerException
    at ca.mcgill.sel.ram.ui.views.containers.TracingView$WovenAspectComponent.highlight(TracingView.java:230)
    at ca.mcgill.sel.ram.ui.utils.GraphicalUpdater.highlight(GraphicalUpdater.java:246)
    at ca.mcgill.sel.ram.ui.utils.GraphicalUpdater.tracingEvent(GraphicalUpdater.java:169)
    at ca.mcgill.sel.ram.ui.views.containers.TracingView.sendTracingEvent(TracingView.java:213)
    at ca.mcgill.sel.ram.ui.views.containers.TracingView.updateElementSelected(TracingView.java:158)
    at ca.mcgill.sel.ram.ui.views.containers.TracingView.destroy(TracingView.java:137)
    at org.mt4j.components.MTComponent.destroy(MTComponent.java:623)
    at org.mt4j.components.MTComponent.destroy(MTComponent.java:623)
    at org.mt4j.sceneManagement.AbstractScene.destroy(AbstractScene.java:390)
    at ca.mcgill.sel.ram.ui.scenes.RamAbstractScene.destroy(RamAbstractScene.java:37)
    at ca.mcgill.sel.ram.ui.scenes.DisplayAspectScene.destroy(DisplayAspectScene.java:398)

Attached is the model where it happened.

Comments (1)

  1. Cécile Camillieri

    Resolves #332: fix crash when destroying TracingView and selected elements were not contained because of the scrolling. Also improve destruction of RamListComponent and RamPanelComponent to detroy even hidden components.

    → <<cset a35527de9bb1>>

  2. Log in to comment