ref #9916: avoid NPE
authorKatja Luther <k.luther@bgbm.org>
Mon, 24 Jan 2022 08:12:03 +0000 (09:12 +0100)
committerKatja Luther <k.luther@bgbm.org>
Mon, 24 Jan 2022 08:12:03 +0000 (09:12 +0100)
eu.etaxonomy.taxeditor.bulkeditor/src/main/java/eu/etaxonomy/taxeditor/bulkeditor/e4/BulkEditorTooltip.java

index 5cd2002ff96da94093ed672416210900701eed3a..8d80f3501f938148a2d34ed0ee2cc32cf9bd814c 100644 (file)
@@ -60,8 +60,11 @@ public class BulkEditorTooltip extends DefaultToolTip {
         if(row==0){
             return colHeaderDataProvider.getDataValue(colIndex, rowIndex).toString();
         }
+        Object dataValue = natTable.getCellByPosition(col, row).getDataValue();
+        if (dataValue == null){
+               return null;
+        }
         return natTable.getCellByPosition(col, row).getDataValue().toString();
-
     }
 
     @Override