comparison artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/SedimentLoadCalculation.java @ 6377:fa8425c8694c

Fix typos and NPEs.
author Felix Wolfsteller <felix.wolfsteller@intevation.de>
date Thu, 20 Jun 2013 16:10:58 +0200
parents 8d6f23243d1d
children df1a3826c691
comparison
equal deleted inserted replaced
6376:8d6f23243d1d 6377:fa8425c8694c
298 double total = 0d; 298 double total = 0d;
299 if ((fraction.getCoarse() <= 0d && load.hasCoarse())){ 299 if ((fraction.getCoarse() <= 0d && load.hasCoarse())){
300 addProblem(km, "missing.data.coarse"); 300 addProblem(km, "missing.data.coarse");
301 continue; 301 continue;
302 } 302 }
303 if (fraction.getFine_middle() <= 0d && load.hasFineMiddle()) { 303 if (fraction.getFineMiddle() <= 0d && load.hasFineMiddle()) {
304 addProblem(km, "missing.data.fine_middle"); 304 addProblem(km, "missing.data.fine_middle");
305 continue; 305 continue;
306 } 306 }
307 if (fraction.getSand() <= 0d && load.hasSand()) { 307 if (fraction.getSand() <= 0d && load.hasSand()) {
308 addProblem(km, "missing data.sand"); 308 addProblem(km, "missing data.sand");

http://dive4elements.wald.intevation.org