From: Sapan Shah Date: Mon, 16 Sep 2013 17:28:36 +0000 (-0700) Subject: one.x.troubleshooting is undefined while updating node name X-Git-Tag: releasepom-0.1.0~86^2 X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?p=controller.git;a=commitdiff_plain;h=73965c6cd39aefa65a8177dc9499647a3b65fda7 one.x.troubleshooting is undefined while updating node name Change-Id: Ibfac018dd943bfbaa35ca1bb179a240493dea39f Signed-off-by: Sapan Shah --- 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();