Skip to content

Commit d3fc1c1

Browse files
committed
RegisterMvcControllers always failed. Fixes #746
1 parent f6526dc commit d3fc1c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SimpleInjector.Integration.Web.Mvc/SimpleInjectorMvcExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ public static Type[] GetControllerTypesToRegister(Container container, params As
105105
throw new ArgumentNullException(nameof(container));
106106
}
107107

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

0 commit comments

Comments
 (0)