# HG changeset patch # User Bjoern Ricks # Date 1348214365 0 # Node ID 06c76de19b516132e4abcb3d7a936c782a9443ab # Parent 11d74b9d428ac4af0481bb713f3c780530b28f6f Fix NullPointerException Check if array is null before accessing its length property. flys-client/trunk@5545 c6561f87-3c4e-4783-a992-168aeb5c3f6f diff -r 11d74b9d428a -r 06c76de19b51 flys-client/ChangeLog --- a/flys-client/ChangeLog Thu Sep 20 14:17:21 2012 +0000 +++ b/flys-client/ChangeLog Fri Sep 21 07:59:25 2012 +0000 @@ -1,3 +1,8 @@ +2012-09-21 Björn Ricks + + * src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java: + Fix NullPointerException on not available list + 2012-09-20 Christian Lins * src/main/java/de/intevation/flys/client/client/FLYSConstants.properties, diff -r 11d74b9d428a -r 06c76de19b51 flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java --- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java Thu Sep 20 14:17:21 2012 +0000 +++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/DoubleArrayPanel.java Fri Sep 21 07:59:25 2012 +0000 @@ -100,7 +100,7 @@ public void setValues(double[] values) { NumberFormat f = NumberFormat.getDecimalFormat(); - if(values.length == 0) { + if(values == null || values.length == 0) { ti.clearValue(); return; }