Mercurial > dive4elements > river
changeset 6258:11d76162eca1
Never return 'null' for bed(load) diameters.
author | Raimund Renkert <rrenkert@intevation.de> |
---|---|
date | Tue, 11 Jun 2013 09:14:12 +0200 |
parents | 165f60f420cf |
children | 06ee8e2f8b0b |
files | artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedQualityAccess.java |
diffstat | 1 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedQualityAccess.java Tue Jun 11 09:12:35 2013 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/access/BedQualityAccess.java Tue Jun 11 09:14:12 2013 +0200 @@ -8,6 +8,7 @@ package org.dive4elements.river.artifacts.access; +import java.util.ArrayList; import java.util.Date; import java.util.LinkedList; import java.util.List; @@ -48,6 +49,9 @@ if (bedDiameter == null && value != null) { bedDiameter = extractDiameter(value); } + if (bedDiameter == null) { + return new ArrayList<String>(); + } return bedDiameter; } @@ -56,6 +60,9 @@ if (bedloadDiameter == null && value != null) { bedloadDiameter = extractDiameter(value); } + if (bedloadDiameter == null) { + return new ArrayList<String>(); + } return bedloadDiameter; }