Bug 15004 - LeftView/RightView of UITextField incorrectly throws exception when assigning null.
Summary: LeftView/RightView of UITextField incorrectly throws exception when assigning...
Alias: None
Product: iOS
Classification: Xamarin
Component: Pre-release ()
Version: 7.0.0.x
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
Depends on:
Reported: 2013-09-25 23:59 UTC by William
Modified: 2013-09-26 12:05 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 William 2013-09-25 23:59:28 UTC
IOS Version

Able to set the LeftView or RightView of a UITextField to null.

A NullReferenceException is thrown.

var demo = new UITextField();
demo.LeftView = null;
Comment 1 Sebastien Pouliot 2013-09-26 11:55:14 UTC
It throws an ArgumentNullException (not a NullReferenceException) for me. 

But you're right that `null` is a legal value (it's the default value). I'll fix this.
Comment 2 Sebastien Pouliot 2013-09-26 12:05:51 UTC
Fixed in master a3ef74f84b8d03094a795a416c0fdb5d47060aa1