[Android] NullReferenceException at MapRenderer.get_NativeMap()


Error message

System.NullReferenceException: Object reference not set to an instance of an object
  at Xamarin.Forms.Maps.Android.MapRenderer.get_NativeMap () <IL 0x0000b, 0x00051>
  at Xamarin.Forms.Maps.Android.MapRenderer.MoveToRegion (Xamarin.Forms.Maps.MapSpan,bool) <IL 0x00001, 0x000a3>
  at Xamarin.Forms.Maps.Android.MapRenderer.OnMoveToRegionMessage (Xamarin.Forms.Maps.Map,Xamarin.Forms.Maps.MapSpan) <IL 0x00003, 0x0002f>
  at Xamarin.Forms.MessagingCenter/<>c__DisplayClass1`2<Xamarin.Forms.Maps.Map, Xamarin.Forms.Maps.MapSpan>.<Subscribe>b__0 (object,object) <0x0010e>
  at Xamarin.Forms.MessagingCenter.InnerSend (string,System.Type,System.Type,object,object) <IL 0x00064, 0x002af>
  at Xamarin.Forms.MessagingCenter.Send<Xamarin.Forms.Maps.Map, Xamarin.Forms.Maps.MapSpan> (Xamarin.Forms.Maps.Map,string,Xamarin.Forms.Maps.MapSpan) <0x000b3>
  at Xamarin.Forms.Maps.Map.MoveToRegion (Xamarin.Forms.Maps.MapSpan) <IL 0x00022, 0x000bb>

Suggested fix

Update Xamarin.Forms and Xamarin.Forms.Maps to version 1.3.5.6333-pre1 or newer.

Contact information

If updating to version 1.3.5.6333-pre1 or newer does not stop the problem in your case, please let us know by emailing us at contact@xamarin.com or one of the support email addresses listed on https://store.xamarin.com/account/. Thanks!

Last Updated: Feb 20, 2015 10:59PM EST