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

System.ArgumentNullException Occurs When Assigning Empty Class Object to ListView ItemSource on Windows Platform #27899

Open
HarishKumarSF4517 opened this issue Feb 19, 2025 · 2 comments
Labels
area-controls-listview ListView and TableView partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows 🪟 t/bug Something isn't working

Comments

@HarishKumarSF4517
Copy link
Contributor

Description

The Windows app crashes with a System.ArgumentNullException when running the sample code that includes a CustomViewCell inside a ListView. The exception occurs when trying to interact with or render the CustomViewCell in the ListView, leading to an immediate crash.

Image

Steps to Reproduce

  1. Launch the app on a Windows device Issue935.zip
  2. Run the sample code with a CustomViewCell inside a ListView.
  3. The app will crash with a System.ArgumentNullException during the rendering of the ListView or upon interaction with the CustomViewCell.

Expected Behavior:

The ListView should render and display the CustomViewCell without any exceptions, and the ItemTapped event should fire correctly when interacting with the cell. The app should not crash.

Actual Behavior:

The app crashes on Windows with a System.ArgumentNullException when the CustomViewCell is rendered or tapped. The exception is thrown during the interaction with the ListView, preventing the UI from being displayed as expected.

Link to public reproduction project repository

No response

Version with bug

9.0.40 SR4

Is this a regression from previous behavior?

Not sure, did not test other versions

Last version that worked well

No response

Affected platforms

Windows

Affected platform versions

No response

Did you find any workaround?

No response

Relevant log output

@HarishKumarSF4517 HarishKumarSF4517 added the t/bug Something isn't working label Feb 19, 2025
@dotnet-policy-service dotnet-policy-service bot added the partner/syncfusion Issues / PR's with Syncfusion collaboration label Feb 19, 2025
@rmarinho rmarinho added this to the .NET 9 Servicing milestone Feb 19, 2025
@rmarinho
Copy link
Member

Can we test if this was a regression, or if it worked on net8 ?

Thanks

@Ying-6
Copy link

Ying-6 commented Feb 20, 2025

Hi @HarishKumarSF4517 I haven't repro your issue on 9.0.40. When I use your repo to debug on Windows, only a gray background bar is displayed, and nothing happens when I click on the background bar. Could you confirm that your repro is stable? And could you help me confirm whether the App page deployed on Windows is consistent with mine? By the way, I changed MainPage = new Issue935(); in the App.xaml.cs file, because there seems to be an error in your previous code MainPage = new Issue417();
Image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-controls-listview ListView and TableView partner/syncfusion Issues / PR's with Syncfusion collaboration platform/windows 🪟 t/bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants