[Dive4elements-commits] [PATCH 1 of 5] Add warning if the list is empty even without an exception

Wald Commits scm-commit at wald.intevation.org
Tue Mar 26 17:35:44 CET 2013


# HG changeset patch
# User Andre Heinecke <aheinecke at intevation.de>
# Date 1364295892 -3600
# Node ID fd07bcaff88079813892dfccb9a2f467976ad845
# Parent  df32d7518f5535ff9bf09d4c42850b211365eff5
Add warning if the list is empty even without an exception

diff -r df32d7518f55 -r fd07bcaff880 flys-artifacts/src/main/java/de/intevation/flys/utils/GeometryUtils.java
--- a/flys-artifacts/src/main/java/de/intevation/flys/utils/GeometryUtils.java	Tue Mar 26 16:29:12 2013 +0100
+++ b/flys-artifacts/src/main/java/de/intevation/flys/utils/GeometryUtils.java	Tue Mar 26 12:04:52 2013 +0100
@@ -73,9 +73,10 @@
             }
         }
         catch(HibernateException iae) {
-            logger.warn("No vaild river axis forund for " + rivername);
+            logger.warn("No vaild river axis found for " + rivername);
             return null;
         }
+        logger.warn("No vaild river axis found for " + rivername);
 
         return null;
     }


More information about the Dive4elements-commits mailing list