Mercurial > dive4elements > river
comparison artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/common/RiverInfoProvider.java @ 9018:aab0c2730a25
Restriction for not-null reference gauge added
author | mschaefer |
---|---|
date | Mon, 23 Apr 2018 15:22:36 +0200 |
parents | d9dbf0b74bc2 |
children | 4a41b7fba4da |
comparison
equal
deleted
inserted
replaced
9017:9b9f5f4ddb80 | 9018:aab0c2730a25 |
---|---|
98 // REMARK: using same logic as in WaterlevelExporter here | 98 // REMARK: using same logic as in WaterlevelExporter here |
99 | 99 |
100 if (this.showAllGauges) | 100 if (this.showAllGauges) |
101 return this.gaugeIndex.findGauge(km); | 101 return this.gaugeIndex.findGauge(km); |
102 | 102 |
103 if (this.refGauge.getRange().contains(km)) | 103 if ((this.refGauge != null) && this.refGauge.getRange().contains(km)) |
104 return this.refGauge; | 104 return this.refGauge; |
105 | 105 |
106 return null; | 106 return null; |
107 } | 107 } |
108 | 108 |