changeset 568:e00c40b17a79

Fixed NPE in LProbe object.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 18 Mar 2015 15:31:09 +0100
parents 044810451b02
children a60f2004d786
files src/main/java/de/intevation/lada/model/land/LProbe.java
diffstat 1 files changed, 6 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/model/land/LProbe.java	Fri Mar 13 16:51:07 2015 +0100
+++ b/src/main/java/de/intevation/lada/model/land/LProbe.java	Wed Mar 18 15:31:09 2015 +0100
@@ -131,7 +131,12 @@
     }
 
     public String getProbeIdAlt() {
-        return this.probeTranslation.getProbeIdAlt();
+        if (this.probeTranslation != null) {
+            return this.probeTranslation.getProbeIdAlt();
+        }
+        else {
+            return "";
+        }
     }
 
     public void setProbeIdAlt(String probeIdAlt) {}
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)