You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
As stated in the title, calling CanGetInstance(serviceType, serviceName) where serviceType has not yet been registered and serviceName = null will result in a System.ArgumentNullException.
This problem occurs with LightInject version 6.4.0-6.6.1
Stack trace is as follows:
System.ArgumentNullException: Value cannot be null. (Parameter 'key')
at System.ThrowHelper.ThrowArgumentNullException(String name)
at System.Collections.Concurrent.ConcurrentDictionary`2.TryGetValue(TKey key, TValue& value)
at LightInject.ServiceContainer.GetRegisteredEmitMethod(Type serviceType, String serviceName)
at LightInject.ServiceContainer.GetEmitMethod(Type serviceType, String serviceName)
at LightInject.ServiceContainer.CanGetInstance(Type serviceType, String serviceName)
I will be creating a PR with a fix ASAP.
The text was updated successfully, but these errors were encountered:
As stated in the title, calling
CanGetInstance(serviceType, serviceName)
whereserviceType
has not yet been registered andserviceName = null
will result in aSystem.ArgumentNullException
.This problem occurs with
LightInject
version 6.4.0-6.6.1Stack trace is as follows:
I will be creating a PR with a fix ASAP.
The text was updated successfully, but these errors were encountered: