[PATCH] issue1386: Prevent null-ranges to be set when station of sediment measurement

Wald Commits scm-commit at wald.intevation.org
Mon Jul 8 11:47:06 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1373276470 -7200
# Node ID b24dc0320b750f068fb0007d103924769ff3ce25
# Parent  1ca0688dddc78c2539aaf61bdd83bd393c54b598
issue1386: Prevent null-ranges to be set when station of sediment measurement
does not match a measurement station.

diff -r 1ca0688dddc7 -r b24dc0320b75 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java	Mon Jul 08 10:25:25 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadFactory.java	Mon Jul 08 11:41:10 2013 +0200
@@ -436,6 +436,7 @@
             Range range = null;
             if (station == null) {
                 log.warn("No measurement station for " + fraction + " km " + km);
+                continue;
             }
             else {
                 if (nextStation != null)


More information about the Dive4elements-commits mailing list