Bug 42071 - System.NullReferenceException When pushing a page above page with Map witout google play services
Summary: System.NullReferenceException When pushing a page above page with Map witout ...
Alias: None
Product: Forms
Classification: Xamarin
Component: Android ()
Version: 2.3.0
Hardware: Macintosh Mac OS
: Lowest normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2016-06-22 11:46 UTC by jzeferino
Modified: 2016-07-04 16:38 UTC (History)
2 users (show)

Tags: ac
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 for Bug 42071 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:

Description jzeferino 2016-06-22 11:46:10 UTC
Xamarin Forms
Xamarin Forms Maps
Google Play Services Maps

I Have a Navigation Page that have a map and a button.
When i press the button I Push a new Page.

If the device/emulator don't have google play services installed, when the new page pushes in i get this exception:

System.NullReferenceException: Object reference not set to an instance of an object.
  at Xamarin.Forms.Maps.Android.MapRenderer.OnLayout (Boolean changed, Int32 l, Int32 t, Int32 r, Int32 b) [0x0005a] in <filename unknown>:0
  at Xamarin.Forms.Platform.Android.FormsViewGroup.n_OnLayout_ZIIII (IntPtr jnienv, IntPtr native__this, Boolean p0, Int32 p1, Int32 p2, Int32 p3, Int32 p4) [0x00008] in C:\BuildAgent2\work\aad494dc9bc9783\Xamarin.Forms.Platform.Android.FormsViewGroup\obj\Release\generated\src\Xamarin.Forms.Platform.Android.FormsViewGroup.cs:240
  at at (wrapper dynamic-method) System.Object:8a34f0e3-9a69-421c-b5d0-a130ce4b605e (intptr,intptr,bool,int,int,int,int)