Bug 3081 - Passing null as title argument to UIActionSheet constructor throws ArgumentNullException
Summary: Passing null as title argument to UIActionSheet constructor throws ArgumentNu...
Alias: None
Product: iOS
Classification: Xamarin
Component: XI runtime ()
Version: 5.0
Hardware: PC Windows
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
Depends on:
Reported: 2012-01-25 21:00 UTC by David Merriman
Modified: 2012-01-25 21:30 UTC (History)
2 users (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and 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 Links.

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.

Related Links:

Description David Merriman 2012-01-25 21:00:12 UTC
If you try to create a UIActionSheet with a null title (as is possible in Objective-C), you get an ArgumentNullException.  The same happens if you try to set the Title property to null.  Using string.Empty instead of null results in undesirable empty space above the action sheet buttons.

Objective-C constructor reference: http://developer.apple.com/library/ios/#documentation/uikit/reference/UIActionSheet_Class/Reference/Reference.html
Comment 2 Sebastien Pouliot 2012-01-25 21:30:13 UTC
Fixed in 90b69e7651f5b3a2e5996cfa4dd32c483bbdac1f
Thanks for the report!