changeset 712:f02862b1862d

Fixed NPE in probe validation rule.
author Raimund Renkert <raimund.renkert@intevation.de>
date Wed, 22 Jul 2015 16:03:33 +0200
parents 3ec358698b4d
children d8e421d9d7ec
files src/main/java/de/intevation/lada/validation/rules/probe/DeskriptorToUmwelt.java
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/src/main/java/de/intevation/lada/validation/rules/probe/DeskriptorToUmwelt.java	Wed Jul 22 16:03:03 2015 +0200
+++ b/src/main/java/de/intevation/lada/validation/rules/probe/DeskriptorToUmwelt.java	Wed Jul 22 16:03:33 2015 +0200
@@ -43,6 +43,9 @@
         if (probe.getMediaDesk() == null || probe.getMediaDesk().equals("")) {
             return null;
         }
+        if (probe.getUmwId() == null) {
+            return null;
+        }
         String[] mediaDesk = probe.getMediaDesk().split(" ");
         if (mediaDesk.length <= 1) {
             return null;
This site is hosted by Intevation GmbH (Datenschutzerklärung und Impressum | Privacy Policy and Imprint)