diff --git a/lib/logstash/runner.rb b/lib/logstash/runner.rb index 3eaec6d6a..42bf9eafc 100644 --- a/lib/logstash/runner.rb +++ b/lib/logstash/runner.rb @@ -70,7 +70,7 @@ class LogStash::Runner args = [nil] if args.empty? @runners = [] - while !args.empty? + while args != nil && !args.empty? args = run(args) end