In my service, I have a protected constructor with @Inject and one of the parameters (provider) @Nullable. Any ideas why I am getting
@Inject
@Nullable
co
@Nullable isn't the same as @Inject(optional=true)... I think if you want to inject null, you need to bind(Service.class).toProvider(Providers.of(null)) or to otherwise have some kind of provider bound that may return null.
@Inject(optional=true)
null
bind(Service.class).toProvider(Providers.of(null))