Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Windows] ListView ScrollTo Method Throws NullReferenceException #26345

Closed
nivetha-nagalingam opened this issue Dec 3, 2024 · 4 comments · Fixed by #26385
Closed

[Windows] ListView ScrollTo Method Throws NullReferenceException #26345

nivetha-nagalingam opened this issue Dec 3, 2024 · 4 comments · Fixed by #26385
Assignees
Labels
area-controls-listview ListView and TableView partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working

Comments

@nivetha-nagalingam
Copy link
Contributor

Description

When using ListView's ScrollTo method with a custom List implementation that implements INotifyCollectionChanged, a NullReferenceException occurs in the ListViewRenderer on Windows.

Steps to Reproduce

  • Create new .NET MAUI project
  • Implement custom List class implementing INotifyCollectionChanged
  • Create ListView with 1000+ items using custom List
  • Call ScrollTo() to last item
  • Click button to replace last item
  • Run the project and Observe NullReferenceException in ListViewRenderer
  • Issue3788ListView.zip

Expected Behavior:

  • ListView should visible and scroll to last item
  • When click the button , Replacing item should update single item only

Actual Behavior:

  • NullReferenceException thrown when ScrollTo is called
  • Exception occurs in ListViewRenderer.cs

Link to public reproduction project repository

No response

Version with bug

9.0.10 SR1

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

Unknown/Other

Affected platforms

Windows

Affected platform versions

Windows SDK 10.0.19041.0

Did you find any workaround?

No response

Relevant log output

@nivetha-nagalingam nivetha-nagalingam added the t/bug Something isn't working label Dec 3, 2024
Copy link

We've found some similar issues:

If any of the above are duplicates, please consider closing this issue out and adding additional context in the original issue.

Note: You can give me feedback by 👍 or 👎 this comment.

@ninachen03
Copy link

Could you provide a sample project for us to investigate it further?
Looking forward to your reply!

@nivetha-nagalingam
Copy link
Contributor Author

Here, I have attached the project file for your investigation.Issue3788ListView.zip
And also Please refer to the file attached in the description for further details.

@sheiksyedm sheiksyedm self-assigned this Dec 4, 2024
@sheiksyedm sheiksyedm added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Dec 4, 2024
@tj-devel709 tj-devel709 added this to the .NET 9 Servicing milestone Dec 4, 2024
@ninachen03
Copy link

This issue has been verified using Visual Studio 17.13.0 Preview 1.0(9.0.12 & 8.0.100 & 8.0.3). Can repro this issue at Window platform.
Image
Issue4973.zip

@ninachen03 ninachen03 added platform/windows 🪟 s/verified Verified / Reproducible Issue ready for Engineering Triage s/triaged Issue has been reviewed labels Dec 5, 2024
@jfversluis jfversluis added the area-controls-listview ListView and TableView label Dec 9, 2024
@github-actions github-actions bot locked and limited conversation to collaborators Jan 10, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
area-controls-listview ListView and TableView partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows 🪟 s/triaged Issue has been reviewed s/verified Verified / Reproducible Issue ready for Engineering Triage t/bug Something isn't working
Projects
None yet
5 participants