changeset 9253:eedb0bcf226b

Fixed: NPE when recalculating tkh
author gernotbelger
date Fri, 06 Jul 2018 13:18:51 +0200
parents 2d4750874c57
children 68ff4087b987
files artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/DefaultBedHeightsConfig.java
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/DefaultBedHeightsConfig.java	Fri Jul 06 13:12:04 2018 +0200
+++ b/artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/DefaultBedHeightsConfig.java	Fri Jul 06 13:18:51 2018 +0200
@@ -62,7 +62,7 @@
         final String rivername = river.getName();
         if (!this.cache.containsKey(rivername)) {
             final Collection<DefaultBedHeight> newDefaults = loadBedHeightDefaultsForRiver(river, problems);
-            this.cache.put(rivername, null);
+            this.cache.put(rivername, newDefaults);
             return newDefaults;
         }
 

http://dive4elements.wald.intevation.org