Closed yui-knk closed 7 years ago
Becuase in MRI Thread#backtrace returns Array or nil, check if thread.backtrace is not nil to avoid NoMethodError: undefined methodeach' for nil:NilClass`
Thread#backtrace
thread.backtrace
NoMethodError: undefined method
ref: https://github.com/ruby/ruby/blob/v2_3_1/vm_backtrace.c#L894-L895
👍
Thx :)
Becuase in MRI
Thread#backtrace
returns Array or nil, check ifthread.backtrace
is not nil to avoidNoMethodError: undefined method
each' for nil:NilClass`ref: https://github.com/ruby/ruby/blob/v2_3_1/vm_backtrace.c#L894-L895