From cf360587ae712fd8ba63c796fe9c8d82585865b8 Mon Sep 17 00:00:00 2001
From: "S.Listl" <S.Listl@SLISTL.aditosoftware.local>
Date: Fri, 31 Jan 2020 15:44:20 +0100
Subject: [PATCH] WorkflowInstance contentprocess check for null

---
 .../recordcontainers/jdito/contentProcess.js                   | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/entity/WorkflowInstance_entity/recordcontainers/jdito/contentProcess.js b/entity/WorkflowInstance_entity/recordcontainers/jdito/contentProcess.js
index c4b20566c1..44de4cc658 100644
--- a/entity/WorkflowInstance_entity/recordcontainers/jdito/contentProcess.js
+++ b/entity/WorkflowInstance_entity/recordcontainers/jdito/contentProcess.js
@@ -36,6 +36,9 @@ else
     wfInstances = _getInstances(workflowDefId, workflowDefKey);
 }
 
+if (!wfInstances)
+    wfInstances = [];
+
 wfInstances = wfInstances.map(function (instance)
 {
     return [
-- 
GitLab