xamarin/Xamarin.Forms

[Bug] NRE triggered by iOS NavigationRenderer

Open

#6,480 opened on Jun 10, 2019

 (1 comment) (0 reactions) (0 assignees)C# (1,926 forks)batch import
e/2 :clock2:good first issuehelp wantedi/highinactivep/iOS 🍎t/bug :bug:up-for-grabs

Repository metrics

Stars
 (5,644 stars)
PR merge metrics
 (No merged PRs in 30d)

Description

Description

I'm getting crash reports logged in AppCenter that have this info:

Application Specific Information: *** Terminating app due to uncaught exception 'SIGABRT', reason: 'Object reference not set to an instance of an object'

Xamarin Exception Stack: System.NullReferenceException: Object reference not set to an instance of an object at Xamarin.Forms.NavigationPage.GetHasNavigationBar (Xamarin.Forms.BindableObject page) <0x1035b5cb8 + 0x00018> in <209f66ed8fe04cb6a815feb8c3b62471#ce6fa466e25885e0cbec812108e17229>:0 at Xamarin.Forms.Platform.iOS.NavigationRenderer.ViewDidLayoutSubviews () <0x103fc02f0 + 0x000b3> in <7402bf39df944a9ebf61606e5f9c45a4#ce6fa466e25885e0cbec812108e17229>:0 at Xamarin.Forms.Platform.iOS.NavigationRenderer+ParentingViewController.ViewWillLayoutSubviews () <0x103ff6ba0 + 0x0008f> in <7402bf39df944a9ebf61606e5f9c45a4#ce6fa466e25885e0cbec812108e17229>:0 at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain(int,string[],intptr,intptr) at UIKit.UIApplication.Main (System.String[] args, System.String principalClassName, System.String delegateClassName) <0x103d91bec + 0x000ef> in <0a1822a59db24dc39fecdd861b632885#ce6fa466e25885e0cbec812108e17229>:0 at MyApp.Mobile.iOS.Application.Main (System.String[] args) <0x10314c004 + 0x00017> in <2143ee47062d4bda9d11d7598cf5ce99#ce6fa466e25885e0cbec812108e17229>:0

I was wondering if you could provide any guidance on what to look at next. If you need any other details, let me know.

Steps to Reproduce

Unfortunately the crash reports do not contain enough information to know what the user was doing.

Basic Information

  • Version with issue: 3.6.0.344457
  • Platform Target Frameworks:
    • iOS: 12.8
  • Affected Devices: various models (e.g. SE, 7, 8, and XS Max)

Contributor guide