# HG changeset patch # User Felix Wolfsteller # 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 values, double km ) { - boolean found = true; + boolean found = false; SedimentDensityValue prev = null; SedimentDensityValue next = null; for (SedimentDensityValue sdv: values) {