avoid NPE
authorKatja Luther <k.luther@bgbm.org>
Mon, 6 Nov 2023 10:17:46 +0000 (11:17 +0100)
committerKatja Luther <k.luther@bgbm.org>
Mon, 6 Nov 2023 10:17:46 +0000 (11:17 +0100)
eu.etaxonomy.taxeditor.editor/src/main/java/eu/etaxonomy/taxeditor/editor/view/descriptive/e4/handler/DynamicFeatureMenuE4.java

index c5f3fa4544471a88b52b4504b5a00d4f241b488d..64cc3d26450b42a8af7b506fb52af6b6682f9a46 100644 (file)
@@ -75,7 +75,7 @@ public class DynamicFeatureMenuE4 {
         //check computed or cloned
         //TODO AM: in the originally code the isCloneForSource was only implemented for the DescriptionBase case
         //         Was this on purpose or was it just forgotten in the other cases?
-        if ( (description.isComputed() || description.isCloneForSource())
+        if ( description != null && (description.isComputed() || description.isCloneForSource())
                 && PreferencesUtil.isComputedDesciptionHandlingDisabled()){
             items.remove(menu);
             return;