[Dive4elements-commits] [PATCH 3 of 4] WQKmsFactory: Prevent NPE this time

Wald Commits scm-commit at wald.intevation.org
Mon May 13 11:13:58 CEST 2013


# HG changeset patch
# User Felix Wolfsteller <felix.wolfsteller at intevation.de>
# Date 1368436754 -7200
# Node ID bcea24d8c2ec873050947407e1b11cf39d9d943f
# Parent  bd6d7da9c6fd4ab40a8b60ad87e9cf93e482567b
WQKmsFactory: Prevent NPE this time.

diff -r bd6d7da9c6fd -r bcea24d8c2ec artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQKmsFactory.java
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQKmsFactory.java	Mon May 13 11:16:28 2013 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQKmsFactory.java	Mon May 13 11:19:14 2013 +0200
@@ -149,6 +149,7 @@
             // add(w, q, km)
             if (row == null || row[0] == null || row[1] == null || row[2] == null) {
                 log.warn("A value in result for WQKms is null.");
+                continue;
             }
             wqkms.add((Double) row[1], (Double) row[2], (Double) row[0]);
         }


More information about the Dive4elements-commits mailing list