pombreda / google-guice

Automatically exported from code.google.com/p/google-guice
Apache License 2.0
0 stars 1 forks source link

NullPointerException in com.google.inject.internal.Injector.get(Errors errors) #699

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
At some unknown times the membersInjector is null, thus

---
// toInject needs injection, do it right away. we only do this once, even if it 
fails
      if (pendingInjection.remove(instance) != null) {
        // if in Stage.TOOL, we only want to inject & notify toolable injection points.
        // (otherwise we'll inject all of them)
        ***membersInjector***.injectAndNotify(instance, errors.withSource(source), injector.options.stage == Stage.TOOL);
      }

---
yields NullPointerException.

Is it intended that membersInjector can be null in some cases? If I knew reason 
for it, I could try to track more why in my case it was null.

Original issue reported on code.google.com by marko.la...@netkoti.fi on 7 Apr 2012 at 6:02

GoogleCodeExporter commented 9 years ago
Version 3.0

Original comment by marko.la...@netkoti.fi on 7 Apr 2012 at 6:04

GoogleCodeExporter commented 9 years ago
Could you try reproducing this with the latest fit HEAD?  I recall fixing 
something similar to this. 

Original comment by sa...@google.com on 7 Apr 2012 at 2:27

GoogleCodeExporter commented 9 years ago
I ran into this same error, and head seems to have fixed it.  Any chance of 
releasing a 3.1?  This bug is really nasty to track down.

Original comment by stevensc...@gmail.com on 9 May 2012 at 9:54

GoogleCodeExporter commented 9 years ago
Note that this issue seemingly can also manifest itself as objects that get 
injected without first having their own dependencies injected (in the case of 
method / field injection)

Original comment by stevensc...@gmail.com on 18 Jun 2012 at 8:38

GoogleCodeExporter commented 9 years ago
There is still no release that incorporates this bug fix.  Can we please get a 
3.1?  I am still running into problems relating to this :-(

Original comment by stevensc...@gmail.com on 27 Sep 2012 at 7:03

GoogleCodeExporter commented 9 years ago

Original comment by sberlin on 10 Nov 2012 at 2:33