Closed
Description
openedon Jan 8, 2023
Description
When using Tabbed shell page in MAUI project using Android. (Pixel 5 Emulator API 33 also reproduce the problem). If you send the app to the background, and open it again. Switching tabs now will cause a System.NullReferenceException.
Steps to Reproduce
- Create a new .NET MAUI Project.
- Replace the content of AppShell.xaml with the content from the following.
<TabBar x:Name="TabBar">
<Tab Title="Tab1"
>
<ShellContent ContentTemplate="{DataTemplate local:MainPage}"/>
</Tab>
<Tab Title="Tab2"
>
<ShellContent ContentTemplate="{DataTemplate local:MainPage}"/>
</Tab>
</TabBar>
- Run the app on an Android (Tested on Pixel 5 Emulator API 33, Samsung S21 Ultra 5G API 33).
- Switch tabs to the other one.
- Send the app to the background.
- Open the app using the drawer icon (Not from running apps).
- Switch tabs (Exception is thrown).
Link to public reproduction project repository
https://github.com/Adelzu/DOTNET_MAUI_NULLREFEXCEP
Version with bug
7.0 (current)
Last version that worked well
Unknown/Other
Affected platforms
Android, I was not able test on other platforms
Affected platform versions
Android 13
Did you find any workaround?
No workaround found yet.
Relevant log output
No response
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment