dotnet / maui

.NET MAUI is the .NET Multi-platform App UI, a framework for building native device applications spanning mobile, tablet, and desktop.
https://dot.net/maui
MIT License
22.21k stars 1.74k forks source link

[MAUI] I4_ Selection - Click the 'Single pre-selection for Vertical list ' item will throw an exception: Object reference not set to an instance of an object #23332

Open ninachen03 opened 4 months ago

ninachen03 commented 4 months ago

Description

Affected case: I4:Single Pre-selection (Vertical list)

Steps to Reproduce

  1. Deploy https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests to Windows.
  2. Navigate to 'I CollectionView' ->'I4 Selection '
  3. Open Single Pre-selection (Vertical list) page.

Actual Behavior: image

Expected Behavior: Open normally

Link to public reproduction project repository

https://devdiv.visualstudio.com/Pkgs/_git/VS.TestAssets.Xaml?path=/Assets/Projects/ManualMauiTests

Version with bug

Microsoft.Maui.Controls 8.0.70-ci.net8.24328.1

Is this a regression from previous behavior?

Not a regression, the issue also repro on 8.0.61& 8.0.3

Affected platforms

Windows

Relevant log output

System.NullReferenceException
  HResult=0x80004003
  Message=Object reference not set to an instance of an object.
  Source=ManualMauiTests
  StackTrace:
   at ManualMauiTests.ViewModels.MonkeysViewModel.MonkeySelectionChanged() in C:\Users\admin\Desktop\ManualMauiTests\ManualMauiTests\ViewModels\MonkeysViewModel.cs:line 232
github-actions[bot] commented 4 months ago

Hi I'm an AI powered bot that finds similar issues based off the issue title.

Please view the issues below to see if they solve your problem, and if the issue describes your problem please consider closing this one and thumbs upping the other issue to help us prioritize it. Thank you!

Open similar issues:

Closed similar issues:

Note: You can give me feedback by thumbs upping or thumbs downing this comment.