Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Added null check on 'doc' after parseXML.

  • Loading branch information...
commit 58b6e0740e7af81179b667526b861fd059799630 1 parent cf071e3
Eric Mill authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  jester.js
View
2  jester.js
@@ -626,7 +626,7 @@ Object.extend(Jester.Resource.prototype, {
if (!xml) return false;
var doc = Jester.Tree.parseXML(xml);
- if (doc.errors) {
+ if (doc && doc.errors) {
var errors = [];
if (typeof(doc.errors.error) == "string")
doc.errors.error = [doc.errors.error];
Please sign in to comment.
Something went wrong with that request. Please try again.