diff --git a/framework/src/Volo.Abp.Core/System/Collections/Generic/AbpCollectionExtensions.cs b/framework/src/Volo.Abp.Core/System/Collections/Generic/AbpCollectionExtensions.cs index 69b4d795e0..0d5e4260f6 100644 --- a/framework/src/Volo.Abp.Core/System/Collections/Generic/AbpCollectionExtensions.cs +++ b/framework/src/Volo.Abp.Core/System/Collections/Generic/AbpCollectionExtensions.cs @@ -75,7 +75,7 @@ namespace System.Collections.Generic public static bool AddIfNotContains([NotNull] this ICollection source, [NotNull] Func predicate, [NotNull] Func itemFactory) { Check.NotNull(source, nameof(source)); - Check.NotNull(source, nameof(predicate)); + Check.NotNull(predicate, nameof(predicate)); Check.NotNull(itemFactory, nameof(itemFactory)); if (source.Any(predicate))