changeset 763:e4d1fded433b

Bugfix: The Description of an InputData-Object will now only be fetched if the Name of the data of the Current State is equal to the Name of the InputData-Object. gnv-artifacts/trunk@818 c6561f87-3c4e-4783-a992-168aeb5c3f6f
author Tim Englich <tim.englich@intevation.de>
date Mon, 22 Mar 2010 12:52:09 +0000
parents b3f922908a31
children afc639e55261
files gnv-artifacts/ChangeLog gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java
diffstat 2 files changed, 13 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/gnv-artifacts/ChangeLog	Mon Mar 22 12:47:44 2010 +0000
+++ b/gnv-artifacts/ChangeLog	Mon Mar 22 12:52:09 2010 +0000
@@ -1,3 +1,11 @@
+2010-03-22  Tim Englich  <tim.englich@intevation.de>
+
+	* src/main/java/de/intevation/gnv/state/StateBase.java (feed):
+	  Bugfix: The Description of an InputData-Object will now only be fetched if
+	  the Name of the data of the Current State is equal to the Name of the 
+	  InputData-Object. This Fix prevent some Exceptions that happen if the 
+	  Query need som Inputdata which was not set at that moment.
+
 2010-03-22  Tim Englich  <tim.englich@intevation.de>
 
 	  ISSUE 122
--- a/gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java	Mon Mar 22 12:47:44 2010 +0000
+++ b/gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java	Mon Mar 22 12:52:09 2010 +0000
@@ -236,8 +236,11 @@
                     boolean valid = iv.isInputValid(tmpItem.getValue(),
                             inputValue.getType());
                     if (valid) {
-                        String[] desc = getDescriptionForInputData(tmpItem, uuid);
-                        tmpItem.setDescription(desc);
+                        
+                        if (tmpItem.getName().equals(this.dataName)){
+                            String[] desc = getDescriptionForInputData(tmpItem, uuid);
+                            tmpItem.setDescription(desc);
+                        }
                         this.inputData.put(tmpItem.getName(), tmpItem);
                     } else {
                         String msg = resFactory.getRessource(

http://dive4elements.wald.intevation.org