[Context Menu] NPE when creating a new data dictionary
Description
The ContextMenuUtils
assumes, that an editor is active when a new prototype menu is created. However, when adding a data dictionary, prototype menus are added without the editor being active yet, causing an NPE to be thrown.
How to reproduce
- Create an empty project
- Try to add a data dictionary
- Note the missing editor tab and the NPE in the console