Add back argument check for TypeForwardedFromAttribute (#16680)
authorJan Kotas <jkotas@microsoft.com>
Thu, 1 Mar 2018 12:25:35 +0000 (04:25 -0800)
committerStephen Toub <stoub@microsoft.com>
Thu, 1 Mar 2018 12:25:35 +0000 (07:25 -0500)
Fixes dotnet/corefx#27554

src/mscorlib/shared/System/Runtime/CompilerServices/TypeForwardedFromAttribute.cs

index c4a8558..27dd645 100644 (file)
@@ -9,6 +9,9 @@ namespace System.Runtime.CompilerServices
     {
         public TypeForwardedFromAttribute(string assemblyFullName)
         {
+            if (string.IsNullOrEmpty(assemblyFullName))
+                throw new ArgumentNullException(nameof(assemblyFullName));
+
             AssemblyFullName = assemblyFullName;
         }