[Lada-commits] [PATCH] Do not try to create a new Ort if coordinate transformation failed

Wald Commits scm-commit at wald.intevation.org
Fri Dec 9 12:26:19 CET 2016


# HG changeset patch
# User Tom Gottfried <tom at intevation.de>
# Date 1481282770 -3600
# Node ID faa6a2117d1e44028b575b144af7fbc3536fccfe
# Parent  b3331bc71f30ffd91c5eb44d2b22c65c26386f66
Do not try to create a new Ort if coordinate transformation failed.

diff -r b3331bc71f30 -r faa6a2117d1e src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java
--- a/src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java	Fri Dec 09 12:08:19 2016 +0100
+++ b/src/main/java/de/intevation/lada/importer/laf/LafObjectMapper.java	Fri Dec 09 12:26:10 2016 +0100
@@ -842,6 +842,7 @@
         }
         if (ortFactory.hasErrors()) {
             currentErrors.addAll(ortFactory.getErrors());
+            return null;
         }
 
         repository.create(ort, "stamm");


More information about the Lada-commits mailing list