Created attachment 22655 [details]
android app with null exception at SetActionBarTextColor
Upgrading from 188.8.131.52 to 184.108.40.206-pre3 causes the following exception at application load. This is with Android 6.
I am attaching a sample project that shows this.
06-02 14:30:53.590 I/MonoDroid( 5052): UNHANDLED EXCEPTION:
06-02 14:30:53.642 I/MonoDroid( 5052): System.NullReferenceException: Object reference not set to an instance of an object.
06-02 14:30:53.642 I/MonoDroid( 5052): at Xamarin.Forms.Platform.Android.Platform.SetActionBarTextColor () [0x00000] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\LabelRenderer.cs:74
06-02 14:30:53.642 I/MonoDroid( 5052): at Xamarin.Forms.Platform.Android.Platform.UpdateActionBarTextColor () [0x00000] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\EntryRenderer.cs:86
06-02 14:30:53.642 I/MonoDroid( 5052): at Xamarin.Forms.Platform.Android.Platform.Xamarin.Forms.Platform.Android.IPlatformLayout.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00000] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\ListViewAdapter.cs:27
06-02 14:30:53.642 I/MonoDroid( 5052): at Xamarin.Forms.Platform.Android.PlatformRenderer.OnLayout (System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00000] in C:\BuildAgent3\work\ca3766cfc22354a1\Xamarin.Forms.Platform.Android\Renderers\ListViewAdapter.cs:577
06-02 14:30:53.642 I/MonoDroid( 5052): at Android.Views.ViewGroup.n_OnLayout_ZIIII (System.IntPtr jnienv, System.IntPtr native__this, System.Boolean changed, System.Int32 l, System.Int32 t, System.Int32 r, System.Int32 b) [0x00008] in <d855bac285f44dda8a0d8510b679b1e2>:0
06-02 14:30:53.642 I/MonoDroid( 5052): at (wrapper dynamic-method) System.Object:9ef35940-7c5a-48dd-9bae-7d8403c32ad4 (intptr,intptr,bool,int,int,int,int)
I can confirm this crash with the 2.3.5 builds.
This is a result of using the Holo theme on Lollipop and higher. There are actually two different issues that can occur:
1. If using a theme without an ActionBar, then you will get an NRE.
2. If the theme has an ActionBar, then an InvalidCastException is thrown because the theme does not have a Toolbar
The changes that are causing this were introduced in 2.3.5 so this is a regression from 2.3.4.
See PR: https://github.com/xamarin/Xamarin.Forms/pull/961
*** Bug 56412 has been marked as a duplicate of this bug. ***
Should be fixed on 2.3.5 stable
Created attachment 23202 [details]
Attached are the logs generated during defect verification
Notice (2018-05-21): bugzilla.xamarin.com will be
switching to read-only mode on Thursday, 2018-05-25 22:00 UTC.
Please join us on
Visual Studio Developer Community and
GitHub to continue tracking
issues. Bugzilla will remain available for reference in read-only mode.
We will continue to work on open Bugzilla bugs and copy them to the new
locations as needed for follow-up. The See Also field
on each Bugzilla bug will be updated with a link to its new location
After Bugzilla is read-only, if you have new information to add for a
bug that does not yet have a matching issue on Developer Community or
GitHub, you can create a follow-up issue in the new location. Copy and
paste the title and description from this bug, and then add your new
details. You can get a pre-formatted version of the title and
In special cases you might also want the comments:
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.