changeset 1182:275904fd7d39

staatId might be null since rev 33dc7dc6b7bc.
author Tom Gottfried <tom@intevation.de>
date Fri, 18 Nov 2016 16:56:33 +0100
parents 0fdf95eaf4f9
children f252a92aae1c
files src/main/java/de/intevation/lada/exporter/laf/LafCreator.java
diffstat 1 files changed, 5 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/exporter/laf/LafCreator.java	Fri Nov 18 13:22:45 2016 +0100
+++ b/src/main/java/de/intevation/lada/exporter/laf/LafCreator.java	Fri Nov 18 16:56:33 2016 +0100
@@ -239,8 +239,11 @@
                     oBuilder.getQuery(),
                     "stamm").getData();
 
-            laf += lafLine(type + "HERKUNFTSLAND_S",
-                String.format("%08d", sOrte.get(0).getStaatId()));
+            if (sOrte.get(0).getStaatId() != null) {
+                laf += lafLine(type + "HERKUNFTSLAND_S",
+                    String.format("%08d", sOrte.get(0).getStaatId()));
+            }
+
             if (sOrte.get(0).getGemId() != null &&
                 sOrte.get(0).getGemId().length() > 0) {
                 laf += lafLine(type + "GEMEINDESCHLUESSEL",
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)