diff flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugeTree.java @ 4154:92021091b03d

Avoid another possible NullPointerException in GaugeTree
author Björn Ricks <bjoern.ricks@intevation.de>
date Tue, 16 Oct 2012 14:42:51 +0200
parents 3245bb4d600b
children 79878efbdf07
line wrap: on
line diff
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugeTree.java	Tue Oct 16 13:06:46 2012 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugeTree.java	Tue Oct 16 14:42:51 2012 +0200
@@ -269,7 +269,7 @@
             if (item instanceof GaugeInfoItem) {
                 boolean setstate = false;
                 GaugeInfoItem gitem = (GaugeInfoItem)item;
-                if (end == null) {
+                if (end == null && gitem.getStart() != null) {
                     if (gitem.getStart() >= start) {
                         setstate = true;
                     }

http://dive4elements.wald.intevation.org