# HG changeset patch # User Tom Gottfried # Date 1479484593 -3600 # Node ID 275904fd7d392dd6bccdb0928fb270d6e53c6c28 # Parent 0fdf95eaf4f94cad7c0ff3b48d452393f8df8f5f staatId might be null since rev 33dc7dc6b7bc. diff -r 0fdf95eaf4f9 -r 275904fd7d39 src/main/java/de/intevation/lada/exporter/laf/LafCreator.java --- 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",