Permalink
Browse files

Merge pull request #26 from Pita/master

Prevent error that happens when trying to read a value that was deleted before
  • Loading branch information...
creationix committed Jul 11, 2011
2 parents 27e2445 + 829a2c6 commit 8090e3469715a4486335276909e24eca068d68e0
Showing with 2 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +1 −1 nstore.js
View
@@ -0,0 +1 @@
+node_modules
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 8090e34

Please sign in to comment.