Permalink
Browse files

prevent a json parse error when index saves a 0 length value

  • Loading branch information...
1 parent 8a206b4 commit 829a2c6b61c84e84b8652ef13d0136efb7f36d69 @Pita Pita committed Jul 9, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 nstore.js
View
@@ -159,7 +159,7 @@ var nStore = module.exports = Pattern.extend({
// Read from disk otherwise
try {
var info = this.index[key];
- if (!info) {
+ if (!info || info.length == 0) {
missing();
return;
}

0 comments on commit 829a2c6

Please sign in to comment.