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

[BUG] NullReferenceException when placing an SVGImage inside a DataGridCheckboxColumn #94

Closed
lukas-kirschner opened this issue Mar 27, 2024 · 6 comments
Labels

Comments

@lukas-kirschner
Copy link

Describe the bug
When I place an SVGImage inside a DataGridCheckboxColumn and change the DataContext, my program crashes with a System.NullReferenceException inside the OnSourceChanged method of the SVGImage.

To Reproduce
Steps to reproduce the behavior:

  1. Create a User Control X with a Datagrid and a DataGridCheckboxColumn, place an SVGImage inside the DataGridCheckboxColumn and set its URI to a relative path that points to an existing SVG resource
  2. Create a ContentPresenter inside a different UserControl
  3. Programmatically change the Content of the ContentControl to different instances of the UserControl X

Expected behavior
The SVGImage is displayed correctly with its Source set to some existing URI, and invisible with the source set to Null or DependencyProperty.UnsetValue.

Additional context
The problem occurred with SVGImage 5.1.1 and .NET8

@jogibear9988
Copy link
Member

thx

@larshjohannesson
Copy link

We have this issue also. Is there any release pending to Nuget including this fix?

@jogibear9988
Copy link
Member

released atm. will take a few minutes on nuget

@larshjohannesson
Copy link

larshjohannesson commented Apr 11, 2024

released atm. will take a few minutes on nuget

We have updated to 5.2.0 from Nuget but still seeing the issue. From what I can see on Github release 5.20 is still based on source from Dec 2023?
image

@jogibear9988
Copy link
Member

Now?

@larshjohannesson
Copy link

Now?

Yes, thank you!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants