Skip to content

Conversation

jjw24
Copy link
Member

@jjw24 jjw24 commented Oct 13, 2021

when changing themes, occasionally run into null casts:
image

image

not sure why the ListBoxItem is 'DisconnectedItem', maybe WPF bug?

repro:
go to the themes settings, select and switch themes quickly by holding down the left mouse button and slide across different themes and eventually will run into the exception.

solution:
use pattern matching

discovered in:
#704

@jjw24 jjw24 self-assigned this Oct 13, 2021
@jjw24 jjw24 enabled auto-merge October 13, 2021 21:55
@jjw24 jjw24 mentioned this pull request Oct 13, 2021
@taooceros
Copy link
Member

maybe the item is removed?

@jjw24 jjw24 merged commit 13917d1 into dev Oct 13, 2021
@jjw24 jjw24 deleted the fix_converter_casting_null branch October 13, 2021 22:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants