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

Not meaningful exception if there is error in configuration #240

Closed
szogun1987 opened this issue May 21, 2017 · 0 comments
Closed

Not meaningful exception if there is error in configuration #240

szogun1987 opened this issue May 21, 2017 · 0 comments
Assignees
Milestone

Comments

@szogun1987
Copy link

If user creates improper configuration like this:
_kernel.Bind<IService>();
or this
_kerner.Bind<IService, ServiceImplementation>();
and then tries resolve service that depends on IService, NullReferenceExption is reported.
It is caused by not setting ProviderCallback in BindingConfiguration class.

@scott-xu scott-xu self-assigned this Sep 15, 2017
@scott-xu scott-xu added this to the 4.0 milestone Sep 15, 2017
@scott-xu scott-xu modified the milestones: 4.0, 3.3.0 Sep 23, 2017
glenkeane-94 pushed a commit to glenkeane-94/Nin-ject that referenced this issue Jun 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants