Skip to content

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

@HarishKumarSF4517

Description

@HarishKumarSF4517

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-controls-listviewListView and TableViewpartner/syncfusionIssues / PR's with Syncfusion collaborationplatform/windowss/needs-attentionIssue has more information and needs another looks/triagedIssue has been revieweds/verifiedVerified / Reproducible Issue ready for Engineering Triaget/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions