[Lada-commits] [PATCH 1 of 2] Do not export an empty HauptprobenNr

Wald Commits scm-commit at wald.intevation.org
Tue Nov 8 17:46:10 CET 2016


# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1478623527 -3600
# Node ID 67fff2a4437e0b57691727ab80cd86d7230efeb2
# Parent  3d1b7b1586a8f91f94fb3e59593e8b8db36954dd
Do not export an empty HauptprobenNr.

diff -r 3d1b7b1586a8 -r 67fff2a4437e src/main/java/de/intevation/lada/exporter/laf/LafCreator.java
--- a/src/main/java/de/intevation/lada/exporter/laf/LafCreator.java	Tue Nov 08 17:32:02 2016 +0100
+++ b/src/main/java/de/intevation/lada/exporter/laf/LafCreator.java	Tue Nov 08 17:45:27 2016 +0100
@@ -133,7 +133,8 @@
         laf += probe.getLaborMstId() == null ?
             "" : lafLine("MESSLABOR", probe.getLaborMstId());
         laf += lafLine("PROBE_ID", probe.getIdAlt());
-        laf += lafLine("HAUPTPROBENNUMMER", probe.getHauptprobenNr());
+        laf += probe.getHauptprobenNr() == null ?
+            "" : lafLine("HAUPTPROBENNUMMER", probe.getHauptprobenNr());
         laf += probe.getBaId() == null ?
             "" : lafLine("MESSPROGRAMM_S", "\"" + probe.getBaId() + "\"");
         laf += probe.getProbenartId() == null ?


More information about the Lada-commits mailing list