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

Generated supertypeInjector is null #243

Closed
antonshkurenko opened this issue Oct 17, 2015 · 1 comment
Closed

Generated supertypeInjector is null #243

antonshkurenko opened this issue Oct 17, 2015 · 1 comment

Comments

@antonshkurenko
Copy link

I posted this: http://stackoverflow.com/questions/33185968/dagger-2-supertypeinjector-is-null

But my researches brought me to this:

Going up and up, to find where supertypeInjector has to be initialized I found this method in DaggerAppComponent (watch abstractRestClientActivityMembersInjector, exactly this object will be supertypeInjector)

private void initialize() {  
      this.provideCallbackManagerProvider = ScopedProvider.create(LogInModule_ProvideCallbackManagerFactory.create(logInModule));
      this.authActivityMembersInjector = AuthActivity_MembersInjector.create(abstractRestClientActivityMembersInjector, DaggerAppComponent.this.provideTokenUtilsProvider, provideCallbackManagerProvider);
      this.abstractRestClientActivityMembersInjector = AbstractRestClientActivity_MembersInjector.create((MembersInjector) MembersInjectors.noOp(), DaggerAppComponent.this.provideApiServiceProvider);
    }

Seems like abstractRestClientActivityMembersInjector is used in 2nd line of this method, but is inited in third. This is the one place, where it inits, obviously it's null, when we try to use it in second line.

@tbroyer
Copy link

tbroyer commented Oct 17, 2015

Dupe of #214

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

3 participants