NullpointerException in split view when mapping operation

Issue #59 resolved
Matthias Schoettle created an issue

Given the Observer is instantiated and |Subject is mapped to a class in an extended aspect.

When doing the operation mapping in the split view, an exception occurs. When clicking on |modify it is shown highlighted, but the following exception is thrown:

Exception in thread "Animation Thread" java.lang.NullPointerException
    at ca.mcgill.ram.ui.handler.impl.InstantiationSplitViewHandler.markOperation(InstantiationSplitViewHandler.java:862)
    at ca.mcgill.ram.ui.handler.impl.InstantiationSplitViewHandler.handleTapOnOperationLowerLevel(InstantiationSplitViewHandler.java:852)
    at ca.mcgill.ram.ui.handler.impl.InstantiationSplitViewHandler.handleTapEvent(InstantiationSplitViewHandler.java:480)
    at ca.mcgill.ram.ui.handler.impl.InstantiationSplitViewHandler.processGestureEvent(InstantiationSplitViewHandler.java:973)

Since the ClassView of the mapped class in not in the current structural view it cannot get the class view. In line 861 of InstantiationSplitViewHandler the class view is retrieved from the higher level structural view. In the case explained above, there is no class view for this class in that view.

Comments (2)

  1. Matthias Schoettle reporter

    Fixed issue #59: In case the class view for the requested class is not contained in the higher-level aspect's structural view, don't mark it. Mark it only if it is.

    → <<cset 4018d5b8fd60>>

  2. Log in to comment