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
The following code causes a NullReferenceException:
var injector = new InjectionContainer();
injector.Dispose();
This is caused by the foreach loop in InjectionContainer.cs line 146 trying to loop through a list that hasn't been initialized. This can be fixed either checking for a null list before looping or changing line 26 to read:
private List<IContainerExtension> extensions = new List<IContainerExtension>();
The text was updated successfully, but these errors were encountered:
The following code causes a NullReferenceException:
This is caused by the
foreach
loop in InjectionContainer.cs line 146 trying to loop through a list that hasn't been initialized. This can be fixed either checking for a null list before looping or changing line 26 to read:The text was updated successfully, but these errors were encountered: