Skip to content

Commit

Permalink
Merge pull request #26 from Pita/master
Browse files Browse the repository at this point in the history
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 8090e34
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
2 changes: 1 addition & 1 deletion nstore.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 8090e34

Please sign in to comment.