# HG changeset patch # User Sascha L. Teichmann # Date 1379066560 -7200 # Node ID 5fe8c64b48d4cfdac5fcf24bb0c16fe042155202 # Parent 7a7cb22395b46fac832e7efb5c14b2ce1ed81ceb Fix for flys/issue1479: Really iterate over the FLYS river not over empty list. diff -r 7a7cb22395b4 -r 5fe8c64b48d4 etl/src/main/java/org/dive4elements/river/etl/aft/Rivers.java --- 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); }