avoid NPE
authorKatja Luther <k.luther@bgbm.org>
Wed, 12 Aug 2020 13:02:06 +0000 (15:02 +0200)
committerKatja Luther <k.luther@bgbm.org>
Wed, 12 Aug 2020 13:02:06 +0000 (15:02 +0200)
eu.etaxonomy.taxeditor.store/src/main/java/eu/etaxonomy/taxeditor/model/AbstractUtility.java

index e397a911b0029e10a9237a578cf0575139300c7f..045a261fe3fc4b9e334ffdf42e1f836a2e9b1aaf 100644 (file)
@@ -851,7 +851,11 @@ public abstract class AbstractUtility {
         }
     }
     public static void updateNameEditors(Set<Taxon> taxaToUpdate){
-        EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, taxaToUpdate);
+        for (Taxon tax: taxaToUpdate){
+            if (tax != null){
+                EventUtility.postEvent(WorkbenchEventConstants.REFRESH_NAME_EDITOR, tax.getUuid());
+            }
+        }
     }