Permalink
Browse files

Added null check on 'doc' after parseXML.

  • Loading branch information...
1 parent cf071e3 commit 58b6e0740e7af81179b667526b861fd059799630 Eric Mill committed Apr 25, 2008
Showing with 1 addition and 1 deletion.
  1. +1 −1 jester.js
View
@@ -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];

0 comments on commit 58b6e07

Please sign in to comment.