changeset 7006:5fe8c64b48d4

Fix for flys/issue1479: Really iterate over the FLYS river not over empty list.
author Sascha L. Teichmann <teichmann@intevation.de>
date Fri, 13 Sep 2013 12:02:40 +0200
parents 7a7cb22395b4
children d584100063dd
files etl/src/main/java/org/dive4elements/river/etl/aft/Rivers.java
diffstat 1 files changed, 9 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/etl/src/main/java/org/dive4elements/river/etl/aft/Rivers.java	Thu Sep 12 18:04:48 2013 +0200
+++ b/etl/src/main/java/org/dive4elements/river/etl/aft/Rivers.java	Fri Sep 13 12:02:40 2013 +0200
@@ -33,7 +33,7 @@
 
         needle = needle.toLowerCase();
 
-        for (River river: rivers) {
+        for (River river: flysRivers) {
             String name = river.getName().toLowerCase();
             if (name.contains(needle)) {
                 rivers.add(river);
@@ -89,6 +89,14 @@
 
         boolean modified = false;
 
+        if (log.isDebugEnabled()) {
+            log.debug("Rivers found in FLYS and AFT:");
+            for (River river: commonRivers) {
+                log.debug("  " + river.getName());
+            }
+            log.debug("---");
+        }
+
         for (River river: commonRivers) {
             modified |= river.sync(context);
         }

http://dive4elements.wald.intevation.org