[PATCH 1 of 2] Fixed: NPE when recalculating tkh

Wald Commits scm-commit at wald.intevation.org
Fri Jul 13 11:40:43 CEST 2018


# HG changeset patch
# User gernotbelger
# Date 1530875931 -7200
# Node ID eedb0bcf226b1f7fc2101a3d27e67e6337618b58
# Parent  2d4750874c57e30212562b8c58b8e6f2ec74b177
Fixed: NPE when recalculating tkh

diff -r 2d4750874c57 -r eedb0bcf226b artifacts/src/main/java/org/dive4elements/river/artifacts/sinfo/tkhstate/DefaultBedHeightsConfig.java
--- 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;
         }
 


More information about the Dive4Elements-commits mailing list