Crash on creation of association when old association exists

Issue #424 wontfix
Matthias Schoettle created an issue

When trying to replace old association uses with new ones (based on the current NewAssociationConcernReuses branch), the following crash occurs, because the old Association concern is loaded locally.

Caused by: java.lang.NullPointerException
    at ca.mcgill.sel.ram.controller.AssociationController.getSelectedFeatures(AssociationController.java:454)
    at ca.mcgill.sel.ram.controller.AssociationController.getSelectedFeatures(AssociationController.java:201)
    at ca.mcgill.sel.ram.controller.AssociationController.createFeatureSelection(AssociationController.java:125)
    at ca.mcgill.sel.ram.controller.AssociationController.createFeatureSelection(AssociationController.java:95)
    at ca.mcgill.sel.ram.controller.StructuralViewController.createAssociation(StructuralViewController.java:317)
    at ca.mcgill.sel.ram.ui.views.structural.handler.impl.StructuralViewHandler.createAssociation(StructuralViewHandler.java:474)
    at ca.mcgill.sel.ram.ui.views.structural.handler.impl.StructuralViewHandler.handleDoubleTapOnClass(StructuralViewHandler.java:292)
    at ca.mcgill.sel.ram.ui.views.structural.handler.impl.BaseViewHandler.processTapEvent(BaseViewHandler.java:160)

Comments (1)

  1. Céline Bensoussan

    This is due to features not existing in the old Association Concern. It would be a temporary fix. The Association Concern needs to be updated.

    Unhide the reuse to delete it properly by updating the code here: https://bitbucket.org/mcgillram/touchram/src/2449b25c5fb5f7df6f278feb2fbe2c12d42617c3/ca.mcgill.sel.ram.gui/src/ca/mcgill/sel/ram/ui/views/structural/InstantiationsContainerView.java?fileviewer=file-view-default#InstantiationsContainerView.java-335

  2. Log in to comment