Bug 16566 - ShowBluetoothAccessoryPicker does not accept null predicate parameter
Summary: ShowBluetoothAccessoryPicker does not accept null predicate parameter
Status: VERIFIED FIXED
Alias: None
Product: iOS
Classification: Xamarin
Component: Xamarin.iOS.dll ()
Version: 7.0.4.x
Hardware: Macintosh Mac OS
: --- normal
Target Milestone: 7.0.6
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2013-12-03 11:33 UTC by E Minbiole
Modified: 2013-12-24 05:53 UTC (History)
3 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:
VERIFIED FIXED

Description E Minbiole 2013-12-03 11:33:56 UTC
According to the documentation if NULL is specified for the predicate parameter, the method should display all discovered accessories. Instead, it throws a System.ArgumentNullException.

This is the call:

EAAccessoryManager.SharedAccessoryManager.ShowBluetoothAccessoryPicker(null, delegate { Console.WriteLine("Completed"); });
Comment 2 Sebastien Pouliot 2013-12-04 09:25:17 UTC
Both parameters accept null.

Fixed in bcb459864c609be42d15575dd35df920e57f0165

QA: unit test added in the same revision
Comment 3 PJ 2013-12-11 18:45:54 UTC
This fix is planned to be released with Xamarin.iOS 7.0.6, which should hit the beta channel before December 23rd.
Comment 4 Sadik Ali 2013-12-24 05:53:23 UTC
I have verified this issue. Following are the verified steps:

1. Created a sample iOS project.
2. Added below code:

EAAccessoryManager.SharedAccessoryManager.ShowBluetoothAccessoryPicker(null,
delegate { Console.WriteLine("Completed"); });

3. Debug successfully application and not getting "System.ArgumentNullException" exception.

Checked With:
All Mac 
XS 4.2.3 (build 23)
X.iOS 7.0.6.166