changeset 9018:aab0c2730a25

Restriction for not-null reference gauge added
author mschaefer
date Mon, 23 Apr 2018 15:22:36 +0200
parents 9b9f5f4ddb80
children 5974bba60e4e
files artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/RiverInfoProvider.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/RiverInfoProvider.java	Mon Apr 23 15:19:27 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/RiverInfoProvider.java	Mon Apr 23 15:22:36 2018 +0200
@@ -100,7 +100,7 @@
         if (this.showAllGauges)
             return this.gaugeIndex.findGauge(km);
 
-        if (this.refGauge.getRange().contains(km))
+        if ((this.refGauge != null) && this.refGauge.getRange().contains(km))
             return this.refGauge;
 
         return null;

http://dive4elements.wald.intevation.org