Bug 6603 - UITouch.LocationInView(null) should not throw ArgumentNullException
Summary: UITouch.LocationInView(null) should not throw ArgumentNullException
Status: RESOLVED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 5.2
Hardware: PC Mac OS
: --- normal
Target Milestone: Untriaged
Assignee: Sebastien Pouliot
URL:
Depends on:
Blocks:
 
Reported: 2012-08-19 15:10 UTC by Robert Jordan
Modified: 2012-08-20 09:14 UTC (History)
2 users (show)

Tags:
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:
Status:
RESOLVED FIXED

Description Robert Jordan 2012-08-19 15:10:57 UTC
According to Apple's specs[1], UITouch.LocationInView(null) should return the touch location
in window coordinates, but MonoTouch is throwing ANE when view == null.

The same might apply to PreviousLocationInView as well, although I didn't test it.

[1] http://developer.apple.com/library/ios/#documentation/UIKit/Reference/UITouch_Class/Reference/Reference.html
Comment 1 Sebastien Pouliot 2012-08-20 09:12:29 UTC
You're right on both cases. Null should be allowed for the method.
Comment 2 Sebastien Pouliot 2012-08-20 09:14:57 UTC
Fixed.
master: e985b161daf5364a2b25bc6180ee07ec8a9a029e
5.4-series: 1b59acbac246c09cc69d7e56977601eb2c4b6749