Open molesmoke opened 1 week ago
This issue has been verified using Visual Studio 17.13.0 Preview 1(9.0.0-rc.2.24503.2 & 9.0.10). Can repro this issue at android platform. but no throws a NullReferenceException on 8.0.100
Notes from a quick review. The MenuFlyoutSubItem have an incorrect null child in the LogicalChildren. Maybe related with this change https://github.com/dotnet/maui/commit/09d3049829d5d6be6db87de511726dce4ac24cdf
Notes from a quick review. The MenuFlyoutSubItem have an incorrect null child in the LogicalChildren. Maybe related with this change 09d3049
Not related. The regression comes from https://github.com/dotnet/maui/pull/24688
Description
Setting MenuFlyoutSubItem IconImageSource throws a NullReferenceException
Steps to Reproduce
Add the following to a MenuFlyout:
<MenuFlyoutSubItem IconImageSource="dotnet_bot.png" Text="Test" />
Actual: Throws a NullReferenceException:
Expected: MenuFlyoutSubItem displayed with the given icon
MenuFlyoutItems work OK:
<MenuFlyoutItem IconImageSource="dotnet_bot.png" Text="Test" />
Link to public reproduction project repository
https://github.com/molesmoke/MauiTestApp/tree/net9.0-menuflyoutsubitem-nre
Version with bug
9.0.10 SR1
Is this a regression from previous behavior?
Yes, this used to work in .NET MAUI
Last version that worked well
8.0.100 SR10
Affected platforms
Windows
Affected platform versions
No response
Did you find any workaround?
No response
Relevant log output