changeset 2461:4e81439ffa28

Fix flys/issue462 flys-client/trunk@4167 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 20 Mar 2012 10:09:14 +0000
parents 5659b5e8c9a8
children d45059aa8507
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ManualPointsEditor.java
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Mar 20 06:55:53 2012 +0000
+++ b/flys-client/ChangeLog	Tue Mar 20 10:09:14 2012 +0000
@@ -1,3 +1,10 @@
+2012-03-20	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	Fix flys/issue462, hinted to by Raimund Renkert.
+
+	* src/main/java/de/intevation/flys/client/client/ui/chart/ManualPointsEditor.java
+	  (createUI): Do not try to parse NULL values.
+
 2012-03-20  Ingo Weinzierl <ingo@intevation.de>
 
 	* flys/issue204 (W-INFO: Wasserspiegellagenberechnung / Layout Auswahlunterstützung Q/W/D) 
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ManualPointsEditor.java	Tue Mar 20 06:55:53 2012 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/chart/ManualPointsEditor.java	Tue Mar 20 10:09:14 2012 +0000
@@ -194,6 +194,8 @@
 
         CellEditValueParser cevp = new CellEditValueParser() {
             public Object parse(Object value, ListGridRecord record, int rowNum, int colNum) {
+                if (value == null)
+                    return null;
                 try {
                     NumberFormat nf = NumberFormat.getDecimalFormat();
                     double d = nf.parse(value.toString());

http://dive4elements.wald.intevation.org