Permalink
Browse files

Merge pull request #11 from mborho/master

Avoid a null reference error
  • Loading branch information...
2 parents 198c201 + 268a9fe commit 27def7cbee4936a3bfd90c96f0a82295c4b6b77c @jhs jhs committed Mar 12, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/feed.js
View
@@ -208,7 +208,7 @@ Feed.prototype.query = function query_feed() {
function on_feed_response(er, resp, body) {
clearTimeout(response_timer)
- if(resp.body || body)
+ if((resp !== undefined && resp.body) || body)
return self.die(new Error('Cannot handle a body in the feed response: ' + lib.JS(resp.body || body)))
if(timed_out) {

0 comments on commit 27def7c

Please sign in to comment.