Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 58056

NullReferenceException: Xamarin.Forms.NavigationPage.GetHasNavigationBar

$
0
0

I have an existing "Xamarin.Forms PCL" project that runs fine on the Windows Phone 8.1 emulator, but will not start correctly with the "iPhone 4S iOS 7.0" emulator and throws a NullReferenceException when run on the "iPhone 4S iOS 8.0" emulator. The call stack at the time of the error is as follows...

0x0 in Xamarin.Forms.NavigationPage.GetHasNavigationBar C#
0x2D in Xamarin.Forms.Platform.iOS.NavigationRenderer.ViewDidLayoutSubviews C#
0xA6 in MonoTouch.UIKit.UIApplication.UIApplicationMain C#
0xB in MonoTouch.UIKit.UIApplication.Main at /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:62,4  C#
0x3B in MonoTouch.UIKit.UIApplication.Main at /Developer/MonoTouch/Source/monotouch/src/UIKit/UIApplication.cs:46,4 C#
0x12 in MileageCapture.iOS.Application.Main at \MyProject\MyProject.iOS\Main.cs:14,-1   C#

All Xamarin components are up to date on both the PC (Visual Studio) and the Mac (updates were installed today). The application used to run prior to the installation of the updates on both platforms (have yet to try Android).

Xamarin.Forms version 1.2.2.6243

Note that whilst this is the reason that I created the test project shown in this other thread, this original project is PCL whereas that test was shared code.


Viewing all articles
Browse latest Browse all 58056

Trending Articles