changeset 4148:1ba0927855b4

Prevent crash when input helper panel is used differently.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 16 Oct 2012 11:35:36 +0200
parents db0b9cff8496
children 71a4b664a16a
files flys-client/ChangeLog flys-client/src/main/java/de/intevation/flys/client/client/ui/fixation/FixationPanel.java
diffstat 2 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/flys-client/ChangeLog	Tue Oct 16 11:33:23 2012 +0200
+++ b/flys-client/ChangeLog	Tue Oct 16 11:35:36 2012 +0200
@@ -1,3 +1,8 @@
+2012-10-16	Felix Wolfsteller	<felix.wolfsteller@intevation.de>
+
+	* src/main/java/de/intevation/flys/client/client/ui/fixation/FixationPanel.java:
+	  Do not crash when input helper is used in non-Fixation settings.
+
 2012-10-15	Björn Ricks	<bjoern.ricks@intevation.de>
 
 	* src/main/java/de/intevation/flys/client/client/FLYS.java:
--- a/flys-client/src/main/java/de/intevation/flys/client/client/ui/fixation/FixationPanel.java	Tue Oct 16 11:33:23 2012 +0200
+++ b/flys-client/src/main/java/de/intevation/flys/client/client/ui/fixation/FixationPanel.java	Tue Oct 16 11:35:36 2012 +0200
@@ -146,6 +146,10 @@
         createCallback();
 
         String callBack = "fixationCallback(this.checked, this.name)";
+
+        if (this.artifact instanceof FixAnalysisArtifact == false)
+            return chartContainer;
+
         FixAnalysisArtifact art = (FixAnalysisArtifact) this.artifact;
 
         overviewService.generateOverview(

http://dive4elements.wald.intevation.org