- changed status to open
NullpointerException in split view when mapping operation
Issue #59
resolved
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)
-
reporter -
reporter - changed status to resolved
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>>
- Log in to comment