Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `size' for nil:NilClass during resolve #4

Closed
rsutphin opened this issue May 26, 2010 · 3 comments
Closed

undefined method `size' for nil:NilClass during resolve #4

rsutphin opened this issue May 26, 2010 · 3 comments

Comments

@rsutphin
Copy link

In certain circumstances, ivy4r will raise this exception during ivy:resolve:

Buildr aborted!
undefined method size' for nil:NilClass /Users/rsutphin/.rvm/gems/jruby-1.4.0@buildr/gems/ivy4r-0.10.5/lib/buildr/ivy_extension.rb:164:inresolve'
/Users/rsutphin/.rvm/gems/jruby-1.4.0@buildr/gems/ivy4r-0.10.5/lib/buildr/ivy_extension.rb:720:in `after_define'

From inspecting the code in ivy_extension.rb, it appears that this will happen when you have two buildr projects with a parent-child relationship where both of them have ivy.xmls.

@rsutphin
Copy link
Author

The sample app for issue #6 demonstrates this problem if you run ivy:resolve on it.

@rsutphin
Copy link
Author

I've monkey-patched this issue for my situation like so:

class Buildr::Ivy::IvyConfig
  def post_resolve_task_list
    @post_resolve_task_list ||= []
  end
end

However, this just prevents the exception. I think the post-resolve tasks might still be resolved incorrectly (I tried using one yet).

@klaas1979
Copy link
Owner

wrong initialization fixed in next release

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants