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
Those methods will eventually fail with a NullReferenceException, but they will do so with an exception mentioning the key argument, as Type is supplied to the dictionary's TryGetValue method.
Better solution is to check for null instead.
The text was updated successfully, but these errors were encountered:
Some methods on the public API of
Container
lack a proper null check when the suppliedType
(serviceType) is a null reference. Those methods are:Those methods will eventually fail with a
NullReferenceException
, but they will do so with an exception mentioning thekey
argument, asType
is supplied to the dictionary'sTryGetValue
method.Better solution is to check for null instead.
The text was updated successfully, but these errors were encountered: