Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
Mono organizations on
GitHub to continue tracking issues. Bugzilla will remain
available for reference in read-only mode. We will continue to work
on open Bugzilla bugs, copy them to the new locations
as needed for follow-up, and add the new items under Related
Our sincere thanks to everyone who has contributed on this bug
tracker over the years. Thanks also for your understanding as we
make these adjustments and improvements for the future.
Please create a new report on
Developer Community or GitHub with
your current version information, steps to reproduce, and relevant error
messages or log files if you are hitting an issue that looks similar to
this resolved bug and you do not yet see a matching new report.
When a managed method is invoked by the native runtime that returns a System.String (to be marshalled as an NSString), if the string value is null, a crash will occur (ArgumentNullException).
This is because the generated IL invokes the NSString(System.String) constructor, which in turn checks if the argument is null, and throws if so.
An example crash can be found here:
A static method should be invoked by the IL that returns null or an instance of NSString instead.
This should now be fixed: https://github.com/mono/monomac/commit/21e257f823d5e0748c9c97ac7dec473d4931c074
Today we have checked this issue on following builds :
XS 4.0.8 (build 2)
Now we are not getting any error when we enter any name which does not exist in the list.
Hence closing this issue. Changing its status to verified.