NullReference in ShellPageRendererTracker.UpdateTabBarVisible() #26784
Labels
area-controls-shell
Shell Navigation, Routes, Tabs, Flyout
migration-compatibility
Xamarin.Forms to .NET MAUI Migration, Upgrade Assistant, Try-Convert
platform/iOS 🍎
t/bug
Something isn't working
Milestone
Description
Sometimes (like a 0.1%) the null reference occurs in ShellPageRendererTracker.UpdateTabBarVisible() on ios.
In this method there are not a null checks for 'ViewController' and 'Page'.
I'll attach pull request in comment that fix the crash.
There is a chance that it just replace the crash by not hiding ShellTabBar when code call it
It happens when user navigate from shell tab page to any basic ContentPage where tab bar should not be visible.
Exception catched on
Shell.SetTabBarIsVisible(this, false);
in page constructor:Steps to Reproduce
No response
Link to public reproduction project repository
No response
Version with bug
9.0.21 SR2.1
Is this a regression from previous behavior?
Yes, this used to work in Xamarin.Forms
Last version that worked well
Unknown/Other
Affected platforms
iOS
Affected platform versions
iOS 17, 18
Did you find any workaround?
In attached pullrequest
Relevant log output
The text was updated successfully, but these errors were encountered: