[PATCH] issue1436: Remove wrong condition where previous value does not exist but is

Wald Commits scm-commit at wald.intevation.org
Tue Aug 6 16:29:49 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1375799981 -7200
# Node ID 67182bde34cd17f6ef623ee0d100a99456e164c8
# Parent  e0ac1b19dfcc94550e8884c14f784a8fb131c7ac
issue1436: Remove wrong condition where previous value does not exist but is
accessed.

diff -r e0ac1b19dfcc -r 67182bde34cd artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentDensity.java
--- 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) {


More information about the Dive4elements-commits mailing list