Skip to content

Commit

Permalink
#8668 fix NPE in pipeline_reporter's worker_states method
Browse files Browse the repository at this point in the history
Fixes #8669
  • Loading branch information
original-brownbear committed Nov 14, 2017
1 parent 2573082 commit 1ce2cd9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion logstash-core/lib/logstash/pipeline_reporter.rb
Expand Up @@ -87,7 +87,8 @@ def plugin_threads
def worker_states(batch_map)
pipeline.worker_threads.map.with_index do |thread, idx|
status = thread.status || "dead"
inflight_count = batch_map[thread] ? batch_map[thread].size : 0
batch = batch_map[thread]
inflight_count = batch ? batch.size : 0
{
:status => status,
:alive => thread.alive?,
Expand Down

0 comments on commit 1ce2cd9

Please sign in to comment.