[PATCH] Collisions nullpointer fix

Wald Commits scm-commit at wald.intevation.org
Thu Jun 21 10:42:04 CEST 2018


# HG changeset patch
# User gernotbelger
# Date 1529570515 -7200
# Node ID 1f94b3673ed3b4752a1e6468838ffe0cb6438589
# Parent  d2472018740c04c486efdf0f4096027963714fcf
Collisions nullpointer fix

diff -r d2472018740c -r 1f94b3673ed3 gwt-client/src/main/java/org/dive4elements/river/client/client/ui/FromToTableHelperPanel.java
--- a/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/FromToTableHelperPanel.java	Thu Jun 21 08:13:37 2018 +0200
+++ b/gwt-client/src/main/java/org/dive4elements/river/client/client/ui/FromToTableHelperPanel.java	Thu Jun 21 10:41:55 2018 +0200
@@ -91,6 +91,10 @@
             fields.put(order, field);
         }
 
+        if (mData == null || mData.opts == null) {
+            this.table.setEmptyMessage(flys.error_feed_no_data());
+            return;
+        }
         for (final DataItem dataItem : mData.opts) {
             final MultiDataItem item = (MultiDataItem) dataItem;
 


More information about the Dive4Elements-commits mailing list