[Android] NullReferenceException in ShellFlyoutTemplatedContentRenderer.HeaderContainer.UpdateMinimumHeight
#13825
Labels
area-controls-shell
Shell Navigation, Routes, Tabs, Flyout
fixed-in-8.0.90
fixed-in-9.0.0-rc.2.24503.2
high
It doesn't work at all, crashes or has a big impact.
platform/android 🤖
t/bug
Something isn't working
Milestone
Description
Report in AppCenter of a NullReferenceException in
ShellFlyoutTemplatedContentRenderer.HeaderContainer.UpdateMinimumHeight
I haven't seen this crash before 7.0.59, but I can't say it isn't just something rare I haven't yet seen.
Opportunities for nulls are:
Context
on line 772, 776PlatformView
on line 792Assuming the isolated error can be addressed, perhaps line 792 should at a minimum change to
PlatformView?.MinimumHeight != minHeight)
?maui/src/Controls/src/Core/Compatibility/Handlers/Shell/Android/ShellFlyoutTemplatedContentRenderer.cs
Lines 766 to 796 in ae20455
Steps to Reproduce
Unknown
Link to public reproduction project repository
not yet
Version with bug
7.0 (current)
Last version that worked well
7.0 (current)
Affected platforms
Android
Affected platform versions
Android 10
Did you find any workaround?
No response
Relevant log output
Microsoft.Maui.Controls.Platform.Compatibility.ShellFlyoutTemplatedContentRenderer.HeaderContainer.UpdateMinimumHeight() Microsoft.Maui.Controls.Platform.Compatibility.ShellFlyoutTemplatedContentRenderer.HeaderContainer.OnMeasure(Int32 widthMeasureSpec, Int32 heightMeasureSpec) Android.Views.View.n_OnMeasure_II(IntPtr , IntPtr , Int32 , Int32 ) Android.Runtime.JNINativeWrapper.Wrap_JniMarshal_PPII_V(_JniMarshal_PPII_V , IntPtr , IntPtr , Int32 , Int32 )
The text was updated successfully, but these errors were encountered: