Mercurial > dive4elements > river
changeset 6002:bcea24d8c2ec
WQKmsFactory: Prevent NPE this time.
author | Felix Wolfsteller <felix.wolfsteller@intevation.de> |
---|---|
date | Mon, 13 May 2013 11:19:14 +0200 (2013-05-13) |
parents | bd6d7da9c6fd |
children | f049f9521a51 |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/model/WQKmsFactory.java |
diffstat | 1 files changed, 1 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- 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]); }