changeset 244:1bc787eeb556

Do not update the locations table if no data is cached. flys-client/trunk@1824 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 04 May 2011 14:40:50 +0000
parents 11c5bcd349b1
children 1e73d5a4859c
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java
diffstat 2 files changed, 8 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Wed May 04 14:05:40 2011 +0000
+++ b/flys-client/ChangeLog	Wed May 04 14:40:50 2011 +0000
@@ -1,3 +1,8 @@
+2011-05-04  Raimund Renkert <rrenkert@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java:
+	  Do not update the locations table if no data is cached.
+
 2011-05-04  Ingo Weinzierl <ingo@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/ui/WQAdaptedInputPanel.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java	Wed May 04 14:05:40 2011 +0000
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/LocationDistancePanel.java	Wed May 04 14:40:50 2011 +0000
@@ -659,7 +659,9 @@
             Tab t2 = new Tab(MESSAGES.distance ());
             t2.setPane(distanceTable);
             inputTables.addTab(t2);
-            updateDistanceInfo(tableData);
+            if (tableData != null) {
+                updateDistanceInfo(tableData);
+            }
 
             container.addMember(inputTables);
             inputTables.selectTab(1);

http://dive4elements.wald.intevation.org