-
Notifications
You must be signed in to change notification settings - Fork 1.9k
System.NullReferenceException at NavigationRenderer.SetStatusBarStyle() #29535
Copy link
Copy link
Closed
Copy link
Labels
area-navigationNavigationPageNavigationPagehighIt doesn't work at all, crashes or has a big impact.It doesn't work at all, crashes or has a big impact.platform/iospotential-regressionThis issue described a possible regression on a currently supported version., verification pendingThis issue described a possible regression on a currently supported version., verification pendings/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Milestone
Metadata
Metadata
Assignees
Labels
area-navigationNavigationPageNavigationPagehighIt doesn't work at all, crashes or has a big impact.It doesn't work at all, crashes or has a big impact.platform/iospotential-regressionThis issue described a possible regression on a currently supported version., verification pendingThis issue described a possible regression on a currently supported version., verification pendings/triagedIssue has been reviewedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering TriageVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't workingSomething isn't working
Type
Fields
Give feedbackNo fields configured for issues without a type.
Description
After migrating from .net8 to .net9 this issue appeared.
After navigating from a login screen to the app's home page, which does not have a status bar, I receive a System.NullReferenceException
I am using NavigationPage.HasNavigationBar as false at HomePage but using it as true did not throw an exception in my tests
The Home page is a FlyoutPage and the details is the page with the tag NavigationPage.HasNavigationBar
This crash happens only when i try to navigate from login page to home page, if the application starts directly in that, the exception doesn't happens, using NavigationPage.HasNavigationBar as true or false.
Steps to Reproduce
I don't know exactly the reason of that, so, don't have a sample
Link to public reproduction project repository
No response
Version with bug
9.0.70 SR7
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.80 SR8
Affected platforms
iOS
Affected platform versions
iOS only
Did you find any workaround?
Nop
Relevant log output