no result fix
This commit is contained in:
parent
bb08cba966
commit
b3090c6352
|
@ -650,7 +650,7 @@ Storage.prototype.getTxHistoryCache = function(walletId, from, to, cb) {
|
||||||
}, function(err, result) {
|
}, function(err, result) {
|
||||||
if (err) return cb(err);
|
if (err) return cb(err);
|
||||||
|
|
||||||
if (result.history.length < end)
|
if (!result || result.history.length < end)
|
||||||
return cb();
|
return cb();
|
||||||
|
|
||||||
var ret = result.history.slice(fwdIndex, end);
|
var ret = result.history.slice(fwdIndex, end);
|
||||||
|
|
Loading…
Reference in New Issue