# HG changeset patch # User Björn Ricks # Date 1350391371 -7200 # Node ID 92021091b03de1a92d3f9e21c02ba6f363fd75a2 # Parent 3245bb4d600bf194914cc258914ff00f10f02af9 Avoid another possible NullPointerException in GaugeTree diff -r 3245bb4d600b -r 92021091b03d flys-client/ChangeLog --- 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 + + * src/main/java/de/intevation/flys/client/client/ui/GaugeTree.java: + Avoid another possible NullPointerException in GaugeTree + 2012-10-16 Björn Ricks * src/main/java/de/intevation/flys/client/client/ui/GaugeTree.java: diff -r 3245bb4d600b -r 92021091b03d flys-client/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; }