From 73965c6cd39aefa65a8177dc9499647a3b65fda7 Mon Sep 17 00:00:00 2001 From: Sapan Shah Date: Mon, 16 Sep 2013 10:28:36 -0700 Subject: [PATCH] one.x.troubleshooting is undefined while updating node name Change-Id: Ibfac018dd943bfbaa35ca1bb179a240493dea39f Signed-off-by: Sapan Shah --- opendaylight/web/troubleshoot/src/main/resources/js/page.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/opendaylight/web/troubleshoot/src/main/resources/js/page.js b/opendaylight/web/troubleshoot/src/main/resources/js/page.js index 1eb2cf0094..bcf911f0a5 100644 --- a/opendaylight/web/troubleshoot/src/main/resources/js/page.js +++ b/opendaylight/web/troubleshoot/src/main/resources/js/page.js @@ -119,6 +119,9 @@ one.f.troubleshooting.existingNodes = { }, flows: function(nodeId) { try { + if(one.f.troubleshooting === undefined){ + return; + } clearTimeout(one.f.troubleshooting.existingNodes.registry.refreshTimer); $.getJSON(one.main.constants.address.prefix + "/troubleshoot/flowStats?nodeId=" + nodeId, function(content) { $rightBottomDashlet = one.f.troubleshooting.rightBottomDashlet.get(); @@ -150,6 +153,9 @@ one.f.troubleshooting.existingNodes = { }, ports: function(nodeId) { try { + if(one.f.troubleshooting === undefined){ + return; + } clearTimeout(one.f.troubleshooting.existingNodes.registry.refreshTimer); $.getJSON(one.main.constants.address.prefix + "/troubleshoot/portStats?nodeId=" + nodeId, function(content) { $rightBottomDashlet = one.f.troubleshooting.rightBottomDashlet.get(); -- 2.36.6