From 31df970e9249a8cd10f3b4642d1a7e483ee60a1c Mon Sep 17 00:00:00 2001 From: ascrutae Date: Thu, 19 May 2016 09:03:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E7=BB=9F=E8=AE=A1=E7=BB=93?= =?UTF-8?q?=E6=9E=9C=E4=B8=BA=E7=A9=BA=EF=BC=8C=E9=A1=B5=E9=9D=A2=E6=8A=9B?= =?UTF-8?q?=E5=BC=82=E5=B8=B8=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../skywalking/js/analysisResultViewResovler.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/skywalking-webui/src/main/webapp/bower_components/skywalking/js/analysisResultViewResovler.js b/skywalking-webui/src/main/webapp/bower_components/skywalking/js/analysisResultViewResovler.js index b1dd5ea9b..d98b4ed21 100644 --- a/skywalking-webui/src/main/webapp/bower_components/skywalking/js/analysisResultViewResovler.js +++ b/skywalking-webui/src/main/webapp/bower_components/skywalking/js/analysisResultViewResovler.js @@ -79,7 +79,11 @@ AnalysisResultViewResolver.prototype.showTypicalCallTree = function (nodeToken) for (var key in node.treeNodes) { var tmpNode = node.treeNodes[key]; - tmpNode.anlyResult = JSON.parse($("#" + key).text()); + var analyResultStr = $("#" + key).text(); + if (analyResultStr == undefined || analyResultStr == "") { + analyResultStr = "{\"totalCall\":0,\"totalCostTime\":0,\"correctNumber\":0,\"humanInterruptionNumber\":0,\"correctRate\":\"0.00\",\"averageCost\":\"0.00\"}"; + } + tmpNode.anlyResult = JSON.parse(analyResultStr); tmpTypicalCallChain.push(tmpNode); if (tmpTypicalCallChainNodeIds[key] == undefined || tmpTypicalCallChainNodeIds[key] == "") { this.currentTypicalTreeNodes.callChainTreeNodeList.push(tmpNode);