I20240426-1800
The getEditor(true) method is called by ScopePart.selectedResourcesFromEditors() and the method is documented as "Returns <code>null</code> if the editor was not instantiated or it failed to be restored." so the null case must be considered. Fixes https://github.com/eclipse-platform/eclipse.platform/issues/1151