summaryrefslogtreecommitdiff
path: root/tt-rss.js
diff options
context:
space:
mode:
Diffstat (limited to 'tt-rss.js')
-rw-r--r--tt-rss.js10
1 files changed, 10 insertions, 0 deletions
diff --git a/tt-rss.js b/tt-rss.js
index c5a57e1fa..35b7c9fbe 100644
--- a/tt-rss.js
+++ b/tt-rss.js
@@ -70,8 +70,18 @@ function refetch_callback() {
document.title = "Tiny Tiny RSS";
notify("All feeds updated.");
+ if (!xmlhttp.responseXML) {
+ notify("refetch_callback: backend did not return valid XML");
+ return;
+ }
+
var reply = xmlhttp.responseXML.firstChild;
+ if (!reply) {
+ notify("refetch_callback: backend did not return expected XML object");
+ return;
+ }
+
var f_document = window.frames["feeds-frame"].document;
for (var l = 0; l < reply.childNodes.length; l++) {