Skip to content

NPE when using multitask #1

@kscaldef

Description

@kscaldef

I don't know if this library is still maintained or not, but if you try to run it with a Rakefile using multitasks, it fails like so:

undefined method `[]' for nil:NilClass
/usr/local/lib/ruby/gems/1.8/gems/rake-timer-0.0.3/lib/rake_timer.rb:13:in `time'
/usr/local/lib/ruby/gems/1.8/gems/rake-timer-0.0.3/lib/rake/task.rb:8:in `execute'
/usr/local/lib/ruby/gems/1.8/gems/rake-10.0.4/lib/rake/task.rb:184:in `invoke_with_call_chain'
...

because the config is stored in Thread.current, and not available in the parallel threads.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions