ref #9541 fix missing OpenIn menu for ordinary CdmBase input
authorAndreas Müller <a.mueller@bgbm.org>
Thu, 1 Apr 2021 08:56:59 +0000 (10:56 +0200)
committerAndreas Müller <a.mueller@bgbm.org>
Thu, 1 Apr 2021 08:56:59 +0000 (10:56 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/view/CdmViewerUtilE4.java

index 32d6d0910fe7d7672617420cb8422c9bd5ed1baa..616e0fd123f9b389d3fdaf747a0e9cab21e458bc 100644 (file)
@@ -54,6 +54,9 @@ public class CdmViewerUtilE4 {
                 TreeNode treeNode = (TreeNode)input;
                 inputClass = treeNode.getValue() == null? null: treeNode.getValue().getClass();
             }
+            if (inputClass == null){
+                inputClass = input.getClass();
+            }
         }
 
         if(inputClass!=null){