Skip to content
Permalink
Browse files

RegisterMvcControllers always failed. Fixes #746

  • Loading branch information
dotnetjunkie committed Sep 2, 2019
1 parent f6526dc commit d3fc1c139410e112a43d5acd856f66356a29be78
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/SimpleInjector.Integration.Web.Mvc/SimpleInjectorMvcExtensions.cs
@@ -105,7 +105,7 @@ public static Type[] GetControllerTypesToRegister(Container container, params As
throw new ArgumentNullException(nameof(container));
}

if (assemblies != null && Array.TrueForAll(assemblies, a => a != null))
if (assemblies == null || !Array.TrueForAll(assemblies, a => a != null))
{
throw new ArgumentNullException(
"The supplied elements in the array can't be null.", nameof(assemblies));

0 comments on commit d3fc1c1

Please sign in to comment.
You can’t perform that action at this time.