diff --git a/lib/blocks.js b/lib/blocks.js index 82da845..418beee 100644 --- a/lib/blocks.js +++ b/lib/blocks.js @@ -175,7 +175,7 @@ BlockController.prototype.blockIndex = function(req, res) { var self = this; var height = req.params.height; self._header.getBlockHeader(parseInt(height), function(err, info) { - if (err) { + if (err || !info) { return self.common.handleErrors(err, res); } res.jsonp({