diff options
author | Jan Kotas <jkotas@microsoft.com> | 2018-03-01 15:25:35 +0300 |
---|---|---|
committer | Jan Kotas <jkotas@microsoft.com> | 2018-03-01 22:06:46 +0300 |
commit | 8b3392c4bf0efbd7d7051ea21cc93c74a072e9d7 (patch) | |
tree | 0178a4a59ad59c8361ca728029bb406ec353d763 | |
parent | 3ce16d3805e1b040b5fa7bf08d943a1f4235683a (diff) |
Add back argument check for TypeForwardedFromAttribute (#16680)
Fixes dotnet/corefx#27554
Signed-off-by: dotnet-bot <dotnet-bot@microsoft.com>
-rw-r--r-- | src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TypeForwardedFromAttribute.cs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TypeForwardedFromAttribute.cs b/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TypeForwardedFromAttribute.cs index c4a855824..27dd64575 100644 --- a/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TypeForwardedFromAttribute.cs +++ b/src/System.Private.CoreLib/shared/System/Runtime/CompilerServices/TypeForwardedFromAttribute.cs @@ -9,6 +9,9 @@ namespace System.Runtime.CompilerServices { public TypeForwardedFromAttribute(string assemblyFullName) { + if (string.IsNullOrEmpty(assemblyFullName)) + throw new ArgumentNullException(nameof(assemblyFullName)); + AssemblyFullName = assemblyFullName; } |