NPE when deleting an element from a component architecture model
Summary
A null pointer exception occurs when trying to delete a model element from a component architecture (Ports, Components, …) when the annotation view is open.
Steps to reproduce
Open AF3 (old or new(clean) workspace), create a component architecture model, add a component and delete it again. An NPE should occur.
Background
The annotation view tries to update itself (due to a notification) while the model element is deleted. Thereby, it also tries to update the visualization of the AnnotationEntry of the deleted element which fails since the the affected model element has no more references to the other EObjects (eContainer() etc.).
(from redmine: issue id 2326, created on 2015-04-16, closed on 2015-05-22)
- Uploads:
- NPE_when_deleting_a_Componentent_from_the_WP6_demonstrator.txt NPE stack trace