ref #7095 Fix possible NPE
authorPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 22 Jan 2018 10:55:00 +0000 (11:55 +0100)
committerPatrick Plitzner <p.plitzner@bgbm.org>
Mon, 22 Jan 2018 10:55:00 +0000 (11:55 +0100)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/workingSet/matrix/CharacterMatrix.java

index 0a04009c4cc4929eb4bc72a45ab6ec32bbdd93ff..15f5d211e1ec2ed196829feb83503ca762b948eb 100644 (file)
@@ -213,6 +213,10 @@ ICdmEntitySessionEnabled{
 
     public void init(UUID workingSetUuid) {
         this.workingSet = CdmStore.getService(IWorkingSetService.class).load(workingSetUuid, WS_PROPERTY_PATH);
+        if(workingSet.getDescriptiveSystem()==null){
+            MessagingUtils.informationDialog("Editor could not be opened", "The working set has no feature tree selected.");
+            return;
+        }
         thisPart.setLabel(workingSet.getLabel());
 
         Composite toolbarComposite = new Composite(parent, SWT.NONE);