Bug 55361 - Null ref in Picker when binding to a field that is null
Summary: Null ref in Picker when binding to a field that is null
Status: RESOLVED NORESPONSE
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: unspecified
Hardware: PC Windows
: --- major
Target Milestone: ---
Assignee: Jimmy [MSFT]
URL:
Depends on:
Blocks:
 
Reported: 2017-04-19 09:26 UTC by connorstoop
Modified: 2017-06-20 14:30 UTC (History)
4 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 NORESPONSE

Description connorstoop 2017-04-19 09:26:06 UTC
# Steps to reproduce

Create a picker and bind the display field to an field that has a null value.


# Expected behavior
The picker displays normaly wen the page is opened but when it is click on show the selection box with an empty value 

# Actual behavior
The picker displays normaly wen the page is opened but when it is click on in android the app crashes

# Supplemental info (logs, images, videos)


# Test environment (full version information)
Comment 1 Jimmy [MSFT] 2017-04-19 17:07:55 UTC
I'm not sure I understand what you mean by 

> bind the display field to an field that has a null value.

I created a sample project with a Picker and binded its ItemsSource property to a null collection. The app did not crash when I opened the Picker. I tested with Forms 2.3.4 and on an Android 6.0 device.

What Forms and Android version are you experiencing this one? Please attach a project that reproduces the issue so we can continue looking into this. Note that we may close this issue after 30ff days of no response, so when providing the requested information set the report's status back to NEW. Thanks!
Comment 2 Rui Marinho 2017-06-20 14:30:03 UTC
Because we have not received a reply to our request for more information we are
closing this issue. If you are still encountering this issue, please reopen the
ticket with the requested information. Thanks!