Skip to content

Commit 638b560

Browse files
committed
Remove exception
1 parent d7a5953 commit 638b560

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

src/coreclr/nativeaot/System.Private.CoreLib/src/System/Reflection/Runtime/TypeInfos/NativeFormat/NativeFormatRuntimeNamedTypeInfo.cs

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -82,13 +82,6 @@ public sealed override bool IsByRefLike
8282

8383
ConstantStringValueHandle constantStringValueHandle = guidStringArgumentHandle.ToConstantStringValueHandle(_reader);
8484

85-
if (constantStringValueHandle.IsNil)
86-
{
87-
// We don't really have a parameter, so just match the name of the 'Guid.ctor' parameter.
88-
// The reason for throwing this exception is to keep semantics with the original behavior.
89-
ArgumentNullException.Throw("input");
90-
}
91-
9285
// Parse a 'Guid' directly from the encoded UTF8 buffer, instead of round-tripping through a 'string'
9386
return Guid.Parse(_reader.ReadStringAsBytes(constantStringValueHandle));
9487
}

0 commit comments

Comments
 (0)