bugfix for CCE in TermEditor, #2924
authorAndreas Müller <a.mueller@bgbm.org>
Tue, 19 Jun 2012 17:05:14 +0000 (17:05 +0000)
committerAndreas Müller <a.mueller@bgbm.org>
Tue, 19 Jun 2012 17:05:14 +0000 (17:05 +0000)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/editor/definedterm/TermBasePropertyTester.java

index c07f8650f46a90cf4f978b6f3d0a15fe6f5e5773..e7ca0952d6d2ae176796b4f057b1df08bdc8bade 100644 (file)
@@ -38,7 +38,7 @@ public class TermBasePropertyTester extends PropertyTester {
                \r
                IStructuredSelection selection = (IStructuredSelection) receiver;\r
                CdmBase selectedElement = (CdmBase)selection.getFirstElement();\r
-               if (selectedElement.isInstanceOf(TermBase.class)){\r
+               if (selectedElement != null && selectedElement.isInstanceOf(TermBase.class)){\r
                        TermBase term = CdmBase.deproxy(selectedElement, TermBase.class);\r
 \r
                        if(IS_MODIFIABLE.equals(property)){\r