You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Create a new Xamarin.Forms project targeting Android (used Xamarin.Forms 5.0.0.2196)
Execute the following statement: var t = Type.GetType(typeof(string).Name, (a) => null, null, false); at the beginning of the MainActivity.OnCreate method
Run the project
Current Behavior
Statement throws a NullReferenceException
Expected Behavior
No exception is thrown, and the call to Type.GetType returns null (this behavior is confirmed on .Net 4.7.2)
Stacktrace
Exception looks to be caused by a missing null check on asm in TypeSpec.cs
Steps to Reproduce
var t = Type.GetType(typeof(string).Name, (a) => null, null, false);
at the beginning of theMainActivity.OnCreate
methodCurrent Behavior
Statement throws a
NullReferenceException
Expected Behavior
No exception is thrown, and the call to
Type.GetType
returnsnull
(this behavior is confirmed on .Net 4.7.2)Stacktrace
Exception looks to be caused by a missing null check on
asm
in TypeSpec.csContrast this with the dotnet/runtime version
The text was updated successfully, but these errors were encountered: