[Dive4elements-commits] [PATCH] WST-Parser: Avoid trying to set MIN_RANGE when actually no stations are given

Wald Commits scm-commit at wald.intevation.org
Tue Apr 23 17:30:24 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1366731020 -7200
# Node ID 202a73ce67045e689286489c1bf8c005a8bfff98
# Parent  af2aa716152fbb7d6ce51f320d61d072d4c9f263
WST-Parser: Avoid trying to set MIN_RANGE when actually no stations are given

diff -r af2aa716152f -r 202a73ce6704 flys-backend/src/main/java/de/intevation/flys/importer/parsers/WstParser.java
--- a/flys-backend/src/main/java/de/intevation/flys/importer/parsers/WstParser.java	Tue Apr 23 17:14:07 2013 +0200
+++ b/flys-backend/src/main/java/de/intevation/flys/importer/parsers/WstParser.java	Tue Apr 23 17:30:20 2013 +0200
@@ -378,7 +378,7 @@
     ) {
         log.debug("addInterval: " + from + " " + to);
 
-        if (values == null || from == MAX_RANGE) {
+        if (values == null || from == MAX_RANGE || from == MIN_RANGE) {
             return;
         }
 


More information about the Dive4elements-commits mailing list