-
-
Notifications
You must be signed in to change notification settings - Fork 147
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
Why missing required factory parameter is silently replaced with null? #136
Comments
This looks to me as if you are using injectable. I think get_it doesn't do anything like that. |
It's not the problem with injectable. Registering: then: and: |
ah; it's a factory with parameters. yeah, get_it can't know what value you want to pass there. i |
I suppose, it should at least throw, when required param is not passed. And, of course, it shouldn't be null by default |
could you creat a PR with a unit test for this? |
@escamoteur Any solutions to this? |
The call
getIt<SettingsBloc>()
works without crashes. But it shouldn't.Why missing required parameter is considered expected behavior, and it is silently replaced with null? (Untill null pointer exception thrown somewhere).
The text was updated successfully, but these errors were encountered: