Skip to content

Commit a8587f4

Browse files
Uri BermanUri Berman
authored andcommitted
Fixed a null pointer exception
1 parent 8850c16 commit a8587f4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/index.js

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

0 commit comments

Comments
 (0)