changeset 9169:1f94b3673ed3

Collisions nullpointer fix
author gernotbelger
date Thu, 21 Jun 2018 10:41:55 +0200
parents d2472018740c
children 9b2e46090099
files gwt-client/src/main/java/org/dive4elements/river/client/client/ui/FromToTableHelperPanel.java
diffstat 1 files changed, 4 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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;
 

http://dive4elements.wald.intevation.org