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 a1cc6f414652e030068d481b4f826603b1081efe..557a2d912ddb09b854df341986f6b5b44856cac0 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))