NPE when (accidentially) trying to repack a top level component
Current status
When trying to repack the top level component of a component architecture, a NPE occurs. This may easily happen to a user, when a sub component is not selected with a left-click on the desired component first before the context menu is opened via a right click.
Steps to reproduce
1. Load an arbitrary example model.
2. Open a component architecture.
3. Open the context menu with a right click in the graphical editor
(without explicitly selecting a sub component first!).
4. Click the “repack” option and observe the NPE in the eclipse console.
Possible solution
Do not offer the re-pack option from the context menu if the currently selected component is the top level component of a component architecture.
(from redmine: issue id 2389, created on 2015-07-28, closed on 2015-08-05)