From ca76af95c584797ede0930034c6892a6c252174d Mon Sep 17 00:00:00 2001 From: Jan Kotas Date: Thu, 1 Mar 2018 04:25:35 -0800 Subject: [PATCH] Add back argument check for TypeForwardedFromAttribute (#16680) Fixes dotnet/corefx#27554 --- .../System/Runtime/CompilerServices/TypeForwardedFromAttribute.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/mscorlib/shared/System/Runtime/CompilerServices/TypeForwardedFromAttribute.cs b/src/mscorlib/shared/System/Runtime/CompilerServices/TypeForwardedFromAttribute.cs index c4a8558..27dd645 100644 --- a/src/mscorlib/shared/System/Runtime/CompilerServices/TypeForwardedFromAttribute.cs +++ b/src/mscorlib/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; } -- 2.7.4