ref #8228: fix NPE
authorKatja Luther <k.luther@bgbm.org>
Tue, 9 Apr 2019 11:58:21 +0000 (13:58 +0200)
committerKatja Luther <k.luther@bgbm.org>
Tue, 9 Apr 2019 11:58:21 +0000 (13:58 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/e4/AbstractCdmEditorPartE4.java

index a1cc6f4..557a2d9 100644 (file)
@@ -157,7 +157,7 @@ public abstract class AbstractCdmEditorPartE4
 
         }
 
-        if((previousSelection!=null && selection!=null) && activePart.equals(selectionProvidingPart) &&
+        if((previousSelection!=null && selection!=null) && (activePart != null &&  selectionProvidingPart != null && activePart.equals(selectionProvidingPart)) &&
                 (previousSelection==selection
                 || previousSelection.equals(selection)
                 || new StructuredSelection(selection).equals(previousSelection))