From 033d2d993d0d290ea741eabd67e174098724bc00 Mon Sep 17 00:00:00 2001 From: will Date: Wed, 5 Jan 2011 18:16:16 -0800 Subject: [PATCH] bug 5482: if there are no json object returned, just continue instead of erroring out on the javascript. --- ui/scripts/cloud.core.js | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/ui/scripts/cloud.core.js b/ui/scripts/cloud.core.js index bab9483a0a9..13e56ddcd51 100644 --- a/ui/scripts/cloud.core.js +++ b/ui/scripts/cloud.core.js @@ -1073,11 +1073,15 @@ function handleErrorInDialog2(errorMsg, $thisDialog) { } function parseXMLHttpResponse(XMLHttpResponse) { - var property; var json = jQuery.parseJSON(XMLHttpResponse.responseText); - for(property in json) {} - var errorObj = json[property]; - return fromdb(errorObj.errortext); + if (json != null) { + var property; + for(property in json) {} + var errorObj = json[property]; + return fromdb(errorObj.errortext); + } else { + return null; + } } function showLeftNavigationBasedOnRole() {