# HG changeset patch # User Sascha L. Teichmann # Date 1348135090 0 # Node ID 52109c4bc5de9cee22c16c6606b32769b3b64d9e # Parent 611cb0f1761e0777365ee1d25584129ba4cbd044 Prevent AIOOB exception. flys-client/trunk@5540 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 611cb0f1761e -r 52109c4bc5de flys-client/ChangeLog --- a/flys-client/ChangeLog Thu Sep 20 09:34:05 2012 +0000 +++ b/flys-client/ChangeLog Thu Sep 20 09:58:10 2012 +0000 @@ -1,3 +1,8 @@ +2012-09-19 Sascha L. Teichmann + + * src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java: + Prevent AIOOB exception. + 2012-09-19 Sascha L. Teichmann * src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java: diff -r 611cb0f1761e -r 52109c4bc5de flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java Thu Sep 20 09:34:05 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/GaugePanel.java Thu Sep 20 09:58:10 2012 +0000 @@ -164,7 +164,7 @@ } } else { - for (int i = gauges.size(); i >= 0; i--) { + for (int i = gauges.size()-1; i >= 0; i--) { GaugeInfo gauge = gauges.get(i); addGauge(gauge, emptygauges); }