diff --git a/src/main/java/com/threerings/getdown/data/Application.java b/src/main/java/com/threerings/getdown/data/Application.java index 32212ee..9e5d373 100644 --- a/src/main/java/com/threerings/getdown/data/Application.java +++ b/src/main/java/com/threerings/getdown/data/Application.java @@ -700,8 +700,9 @@ public class Application // whether to cache code resources and launch from cache _useCodeCache = Boolean.parseBoolean((String) cdata.get("use_code_cache")); - _codeCacheRetentionDays = cdata.containsKey("code_cache_retention_days") ? - Integer.parseInt((String) cdata.get("use_code_cache")) : 7; + String ccRetentionDays = (String) cdata.get("code_cache_retention_days"); + _codeCacheRetentionDays = ccRetentionDays == null ? 7 : + Integer.parseInt(ccRetentionDays); // parse and return our application config UpdateInterface ui = new UpdateInterface();