# HG changeset patch # User Tim Englich # Date 1269262329 0 # Node ID e4d1fded433b8c063b4aa5539083b6dcd93b1ccf # Parent b3f922908a314e305195dfa62f2b8e716098521c 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 diff -r b3f922908a31 -r e4d1fded433b gnv-artifacts/ChangeLog --- 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 + + * 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 ISSUE 122 diff -r b3f922908a31 -r e4d1fded433b gnv-artifacts/src/main/java/de/intevation/gnv/state/StateBase.java --- 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(