Page
<ContentPage xmlns="http://xamarin.com/schemas/2014/forms"
xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml"
xmlns:maps="clr-namespace:Xamarin.Forms.Maps;assembly=Xamarin.Forms.Maps"
xmlns:trans="clr-namespace:FieldStrikeMove.Core.Localisation;assembly=FieldStrikeMove.Core"
x:Class="FieldStrikeMove.Forms.Views.MapView" Title="{trans:Translate Map}">
<Grid>
<maps:Map x:Name="map" HorizontalOptions="FillAndExpand" VerticalOptions="FillAndExpand" />
</Grid>
</ContentPage>
Rotate device...
BANG!
Error:
08-19 13:53:48.702 E/AndroidRuntime( 2627): FATAL EXCEPTION: main
08-19 13:53:48.702 E/AndroidRuntime( 2627): Process: eu.fieldstrike.android.fieldstrike, PID: 2627
08-19 13:53:48.702 E/AndroidRuntime( 2627): java.lang.RuntimeException: java.lang.reflect.InvocationTargetException
08-19 13:53:48.702 E/AndroidRuntime( 2627): at com.android.internal.os.ZygoteInit.main(ZygoteInit.java:595)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at dalvik.system.NativeStart.main(Native Method)
08-19 13:53:48.702 E/AndroidRuntime( 2627): Caused by: java.lang.reflect.InvocationTargetException
08-19 13:53:48.702 E/AndroidRuntime( 2627): at java.lang.reflect.Method.invokeNative(Native Method)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at java.lang.reflect.Method.invoke(Method.java:515)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at com.android.internal.os.ZygoteInit$MethodAndArgsCaller.run(ZygoteInit.java:779)
08-19 13:53:48.702 E/AndroidRuntime( 2627): ... 2 more
08-19 13:53:48.702 E/AndroidRuntime( 2627): Caused by: md52ce486a14f4bcd95899665e9d932190b.JavaProxyThrowable: System.NullReferenceException: Object reference not set to an instance of an object
08-19 13:53:48.702 E/AndroidRuntime( 2627): at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw () [0x0000b] in /Users/builder/data/lanes/1978/f98871a9/source/mono/mcs/class/corlib/System.Runtime.ExceptionServices/ExceptionDispatchInfo.cs:61
08-19 13:53:48.702 E/AndroidRuntime( 2627): at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (intptr,intptr,intptr,Android.Runtime.JValue*) [0x00084] in /Users/builder/data/lanes/1978/f98871a9/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:1029
08-19 13:53:48.702 E/AndroidRuntime( 2627): at Android.Runtime.JNIEnv.CallNonvirtualVoidMethod (intptr,intptr,intptr,Android.Runtime.JValue[]) [0x0001d] in /Users/builder/data/lanes/1978/f98871a9/source/monodroid/src/Mono.Android/src/Runtime/JNIEnv.g.cs:1036
08-19 13:53:48.702 E/AndroidRuntime( 2627): at Xamarin.Forms.Platform.Android.FormsViewGroup.MeasureAndLayout (int,int,int,int,int,int)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at Xamarin.Forms.Platform.Android.VisualElementTracker.UpdateLayout ()
08-19 13:53:48.702 E/AndroidRuntime( 2627): at Xamarin.Forms.Platform.Android.VisualElementRenderer`1<Xamarin.Forms.NavigationPage>.UpdateLayout () <0x0003b>
08-19 13:53:48.702 E/AndroidRuntime( 2627): at Xamarin.Forms.Platform.Android.Platform.OnLayout (bool,int,int,int,int)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at Xamarin.Forms.Platform.Android.PlatformRenderer.OnLayout (bool,int,int,int,int)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at Android.Views.ViewGroup.n_OnLayout_ZIIII (intptr,intptr,bool,int,int,int,int) [0x00009] in /Users/builder/data/lanes/1978/f98871a9/source/monodroid/src/Mono.Android/platforms/android-21/src/generated/Android.Views.ViewGroup.cs:4041
08-19 13:53:48.702 E/AndroidRuntime( 2627): at (wrapper dynamic-method) object.0f77f25f-4447-4c58-89bd-998297593a05 (intptr,intptr,bool,int,int,int,int)
08-19 13:53:48.702 E/AndroidRuntime( 2627):
08-19 13:53:48.702 E/AndroidRuntime( 2627): at md5530bd51e982e6e7b340b73e88efe666e.PlatformRenderer.n_onLayout(Native Method)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at md5530bd51e982e6e7b340b73e88efe666e.PlatformRenderer.onLayout(PlatformRenderer.java:62)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.View.layout(View.java:14817)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.ViewGroup.layout(ViewGroup.java:4631)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.widget.LinearLayout.setChildFrame(LinearLayout.java:1671)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.widget.LinearLayout.layoutHorizontal(LinearLayout.java:1660)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.widget.LinearLayout.onLayout(LinearLayout.java:1436)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.View.layout(View.java:14817)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.ViewGroup.layout(ViewGroup.java:4631)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.View.layout(View.java:14817)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.ViewGroup.layout(ViewGroup.java:4631)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at com.android.internal.widget.ActionBarOverlayLayout.onLayout(ActionBarOverlayLayout.java:374)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.View.layout(View.java:14817)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.ViewGroup.layout(ViewGroup.java:4631)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.widget.FrameLayout.layoutChildren(FrameLayout.java:453)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.widget.FrameLayout.onLayout(FrameLayout.java:388)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.View.layout(View.java:14817)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.ViewGroup.layout(ViewGroup.java:4631)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.ViewRootImpl.performLayout(ViewRootImpl.java:1987)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.ViewRootImpl.performTraversals(ViewRootImpl.java:1744)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.ViewRootImpl.doTraversal(ViewRootImpl.java:1000)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.ViewRootImpl$TraversalRunnable.run(ViewRootImpl.java:5670)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.Choreographer$CallbackRecord.run(Choreographer.java:761)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.Choreographer.doCallbacks(Choreographer.java:574)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.Choreographer.doFrame(Choreographer.java:544)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.view.Choreographer$FrameDisplayEventReceiver.run(Choreographer.java:747)
08-19 13:53:48.702 E/AndroidRuntime( 2627): at android.os.Handler.handleCallback(
Does this happen to anyone else?