changeset 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 59beb6651ee6
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugeTree.java
diffstat 2 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Oct 16 13:06:46 2012 +0200
+++ b/flys-client/ChangeLog	Tue Oct 16 14:42:51 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-16	Björn Ricks	<bjoern.ricks@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/GaugeTree.java:
+	  Avoid another possible NullPointerException in GaugeTree
+
 2012-10-16	Björn Ricks	<bjoern.ricks@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/GaugeTree.java:
--- 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