2 parents 4a4bcbc + f5048da commit 28c21d6Copy full SHA for 28c21d6
1 file changed
DNN Platform/Library/Entities/Modules/BusinessControllerProvider.cs
@@ -6,6 +6,7 @@ namespace DotNetNuke.Entities.Modules;
6
using System;
7
8
using DotNetNuke.Abstractions.Modules;
9
+using DotNetNuke.Common;
10
using DotNetNuke.Framework;
11
12
/// <summary>The <see cref="IBusinessControllerProvider"/> implementation.</summary>
@@ -36,6 +37,7 @@ public T GetInstance<T>(string businessControllerTypeName)
36
37
public T GetInstance<T>(Type businessControllerType)
38
where T : class
39
{
40
+ Requires.NotNull(nameof(businessControllerType), businessControllerType);
41
if (typeof(T).IsAssignableFrom(businessControllerType))
42
43
return (T)this.GetInstance(businessControllerType);
0 commit comments