changeset 6758:67182bde34cd

issue1436: Remove wrong condition where previous value does not exist but is accessed.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Tue, 06 Aug 2013 16:39:41 +0200
parents e0ac1b19dfcc
children 6eb2b8087cfa
files artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java	Tue Aug 06 16:03:56 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java	Tue Aug 06 16:39:41 2013 +0200
@@ -93,7 +93,7 @@
         List<SedimentDensityValue> values,
         double km
     ) {
-        boolean found = true;
+        boolean found = false;
         SedimentDensityValue prev = null;
         SedimentDensityValue next = null;
         for (SedimentDensityValue sdv: values) {

http://dive4elements.wald.intevation.org