From e8eeb92225e74865f2593672549b1a462bd20c63 Mon Sep 17 00:00:00 2001
From: Tamas Levente Kiss <tamas.levente.kiss@ericsson.com>
Date: Mon, 23 Jul 2018 12:49:15 +0200
Subject: [PATCH] [incident#1584976] DsRestAPI/DsRestAPIComm.js returned "no
 answer" response. Problem fixed.

Signed-off-by: Tamas Levente Kiss <tamas.levente.kiss@ericsson.com>
---
 htdocs/Utils/DsRestAPI/DsRestAPIComm.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/htdocs/Utils/DsRestAPI/DsRestAPIComm.js b/htdocs/Utils/DsRestAPI/DsRestAPIComm.js
index 3f983c3..8eb23a5 100644
--- a/htdocs/Utils/DsRestAPI/DsRestAPIComm.js
+++ b/htdocs/Utils/DsRestAPI/DsRestAPIComm.js
@@ -58,7 +58,7 @@ function CDsRestAPIComm(p_extension) {
                     {
                         try {
                             var contentlist = JSON.parse(data).contentList;
-                            if (contentlist.length == 1 && contentlist[0].node.val == "timeout")
+                            if (contentlist.length == 1 && contentlist[0].node != undefined && contentlist[0].node.val == "timeout")
                             {
                                 mThis.handleError("Timeout received from server", "Overload", aHandler, end, start);
                             }
-- 
GitLab