[Lada-commits] [PATCH 1 of 2] Fixed NPE in LProbe object
Wald Commits
scm-commit at wald.intevation.org
Wed Mar 18 15:30:50 CET 2015
# HG changeset patch
# User Raimund Renkert <raimund.renkert at intevation.de>
# Date 1426689069 -3600
# Node ID e00c40b17a7931621f1a0b9572718ab513ffb71e
# Parent 044810451b028e37f31f3830aa44e0e8fd102336
Fixed NPE in LProbe object.
diff -r 044810451b02 -r e00c40b17a79 src/main/java/de/intevation/lada/model/land/LProbe.java
--- 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) {}
More information about the Lada-commits
mailing list