X-Git-Url: https://git.opendaylight.org/gerrit/gitweb?a=blobdiff_plain;f=opendaylight%2Fweb%2Ftroubleshoot%2Fsrc%2Fmain%2Fresources%2Fjs%2Fpage.js;fp=opendaylight%2Fweb%2Ftroubleshoot%2Fsrc%2Fmain%2Fresources%2Fjs%2Fpage.js;h=bcf911f0a5583a46bf14b5150ff20a01c1096bfc;hb=73965c6cd39aefa65a8177dc9499647a3b65fda7;hp=1eb2cf0094ea3a4d801c6dc0a31955b257a5898c;hpb=6c7e9eaeb39a47103deb9a150035a00f29267caf;p=controller.git 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();