# HG changeset patch # User Raimund Renkert # Date 1400684582 -7200 # Node ID 8333b9b06c981a231e0c92283de3bfa65b6cc0d9 # Parent 447ff9126d1eccb5944f4880070baa68db909a7d Return NaN for width if no width exists for the requested station in bedheights data. diff -r 447ff9126d1e -r 8333b9b06c98 artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSingleData.java --- a/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSingleData.java Wed May 21 13:22:44 2014 +0200 +++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/model/minfo/BedHeightSingleData.java Wed May 21 17:03:02 2014 +0200 @@ -82,6 +82,9 @@ public double getWidth(double station) { int ndx = this.station.indexOf(station); + if (ndx < 0) { + return Double.NaN; + } return width.get(ndx); } }