Bug 25596 - Deep Error in Bindable.Text = null
Summary: Deep Error in Bindable.Text = null
Alias: None
Product: Forms
Classification: Xamarin
Component: Forms ()
Version: 1.2.3
Hardware: PC Windows
: Normal normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2014-12-23 17:16 UTC by Ian
Modified: 2016-03-25 19:19 UTC (History)
4 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 Ian 2014-12-23 17:16:30 UTC
In this example:

        public TitleDetailDisclosureCell(string text=null )
            //Create the UI for the cells
            var lblTitle = new Label
                XAlign = TextAlignment.Start,
                YAlign = TextAlignment.Center,
                Text = null,
                Font = Font.SystemFontOfSize(NamedSize.Medium, FontAttributes.Bold)

When the cell is in a ListView and that listview's ItemSource gets data,  XForms blows up with an "unhandled exception" somewhere deep in the java code. Probably a null check missing?

If you remove the Text=null part it works fine.
Comment 1 Ram Chandra 2014-12-30 13:38:20 UTC
I can't reproduce this, we may have to see if a developer can figure out what's going on here. If you have a chance, it might also be helpful to include sample application, build information and IDE logs.

You can get build information from here:
Visual Studio => Help => About Microsoft Visual Studio => Copy Info

You can get IDE logs from here: 
Visual Studio => Zip Xamarin Logs ( Attach zipped logs)

Environment Info:

Window Info :
Microsoft Visual Studio Professional 2013
Version 12.0.30723.00 Update 3
Microsoft .NET Framework
Version 4.5.50938
Installed Version: Professional
Xamarin (10cfd178d55287f09c85f5a1e604dfe20889a40f)
Xamarin.Android (ba9bbbdd44cfdc4bf485e8885bd2ad24fba525f7)
Xamarin.iOS (840a925103a0bf4a856507f13d5eaee3c1579c2f)

Mac Info:
Mac OS X 10.9.5
Xamarin Studio: 5.5.4 (build 15)
Mono 3.10.0 ((detached/92c4884)
GTK+ 2.24.23 (Raleigh theme)
Package version: 310000031
Xamarin.Android : (Business Edition)
Xcode 6.1 (6604)
Build 6A1052d
Xamarin.iOS: (Business Edition)
=== Build Information ===

Release ID: 505040015
Git revision: f93940a35458a18052f1a25e106e62ca970d9c40
Build date: 2014-11-19 15:32:41-05
Xamarin addins: dc23cbd91a3a0e1d326328e1229e86c942a49ec8
Comment 2 Ian 2014-12-30 13:39:43 UTC
We found the error, it was in Xamarin Forms Labs
Comment 3 Jason Smith [MSFT] 2016-03-25 19:19:02 UTC