ref #7086 Do not open WS editor for null selection
authorPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 30 Nov 2017 15:16:11 +0000 (16:16 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Thu, 30 Nov 2017 15:16:11 +0000 (16:16 +0100)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/handler/OpenWorkingSetEditorHandler.java

index c1393ede9ecba96ddd4ac45fae0875b4b18a9816..ac7fdd5f8d53634459266852cf695560bc59f57a 100644 (file)
@@ -20,6 +20,9 @@ public class OpenWorkingSetEditorHandler {
        @Execute
        public void execute(Shell shell, EPartService partService, MApplication application, EModelService modelService) {
            WorkingSet workingSet = WorkingSetSelectionDialog.select(shell, null);
+           if(workingSet==null){
+               return;
+           }
            MPart part = partService.createPart("eu.etaxonomy.taxeditor.editor.view.workingSet.WorkingSetEditor");
 
         MPartStack editorAreaPartStack = WorkbenchUtility.getEditorAreaPartStack(application, modelService);