Notice (2018-05-24): bugzilla.xamarin.com is now in
Please join us on
Visual Studio Developer Community and in the
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
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.
Exception on during LoadApplication() in FormsAppCompatActivity.cs due to the following recent code addition:
var iver = Platform.GetRenderer(application.MainPage); // Offending line.
if (iver != null)
Prior to 2.4.0 R2, Application.MainPage could be null until OnStart() was called and now causes NRE if not set during LoadApplication(new App(..));s.Platform.Android\AppCompat\FormsAppCompatActivity.cs:152
Sorry about that. https://github.com/xamarin/Xamarin.Forms/pull/1221
The property MainPage in the Application class was able to be null prior to OnStart().
The NRE happens inside Platform.GetRenderer(..) when passed in a null 'MainPage'.
*** Bug 60346 has been marked as a duplicate of this bug. ***
I have this error after update to XF 18.104.22.16842.
I have this bug (or something like as) in version 22.214.171.12442. (See Bug 60346 I submitted today).
Should be fixed in 2.4.0 SR3. Thank you!