From bf45f5876062de0a794c0b474c1a265b304926f7 Mon Sep 17 00:00:00 2001
From: Johannes Hoermann <j.hoermann@adito.de>
Date: Mon, 3 Jun 2019 08:35:02 +0200
Subject: [PATCH] do not throw error if custom property doesn't exist.

---
 process/DataCaching_lib/process.js | 10 ++++++++--
 1 file changed, 8 insertions(+), 2 deletions(-)

diff --git a/process/DataCaching_lib/process.js b/process/DataCaching_lib/process.js
index 8410bd42ce..db66f89ed4 100644
--- a/process/DataCaching_lib/process.js
+++ b/process/DataCaching_lib/process.js
@@ -66,8 +66,14 @@ CachedData.prototype.load = function(pDataCallbackFunction)
     //currently it's not possible to cache the data within the serer-context, so instead the Data-function is called everytime 
     if (this.runningOnServer)
         cachingEnabled = false;
-    else if (JSON.parse(project.getInstanceConfigValue("custom.dataCaching.client.forceDisable")) == true)
-        cachingEnabled = false;
+    else 
+    {
+        try 
+        {
+            if (JSON.parse(project.getInstanceConfigValue("custom.dataCaching.client.forceDisable")) == true)
+                cachingEnabled = false;
+        } catch (ex) {/* ignore */}
+    }
 
     if (!cachingEnabled)
         return pDataCallbackFunction.call(this, this.keepPerLanguage, this.locale);
-- 
GitLab