Skip to content

Commit cac5c43

Browse files
Uri BermanUri Berman
authored andcommitted
Fixed a null pointer exception
1 parent 2b239b6 commit cac5c43

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ var read_config = function(){
101101
if (process.argv[i] === '-n' || process.argv[i] === '--no_daemon') config['no_daemon'] = true;
102102
if (process.argv[i] === '-h' || process.argv[i] === '--halt_on_change') config['halt_on_change'] = true;
103103
else if (process.argv[i] === '-d' || process.argv[i] === '--local_store') {
104-
if (i+1 >= process.argv[length]) {
104+
if (i+1 >= process.argv.length) {
105105
logger.error("No dir provided with --local_store option");
106106
process.exit(3);
107107
}

0 commit comments

Comments
 (0)