Invoking the PropertyChanged event throws NullReferenceException #21431
Labels
area-controls-listview
ListView and TableView
platform/macOS 🍏
macOS / Mac Catalyst
platform/windows 🪟
s/triaged
Issue has been reviewed
s/verified
Verified / Reproducible Issue ready for Engineering Triage
t/bug
Something isn't working
Milestone
Description
Hello MAUI devs,
so i've been working on a small app for testing purposes. That app uses a ViewModel which implements the
INotifyPropertyChanged
interface. When i try to update a ListView by invoking PropertyChanged, all i get is a NullReferenceException.The kicker is that according to VS, the PropertyChanged event is not null. However i cannot check whether the invocation list is null because of some other exception within the debugger. I did implement a null check within my ViewModel hoping that this exception wouldn't come up again but it does.
Steps to Reproduce
Expected behavior:
A list of names should appear under the text box.
Actual behavior:
The debugger reports an uncaught NullReferenceException in
OnPropertyChanged()
.Link to public reproduction project repository
https://github.com/AlphaNERD-/NETMAUIBindingDemo
Version with bug
8.0.7 SR2
Is this a regression from previous behavior?
Not sure, did not test other versions
Last version that worked well
Unknown/Other
Affected platforms
Windows, macOS
Affected platform versions
Windows 10, macOS 14.4
Did you find any workaround?
No response
Relevant log output
No response
The text was updated successfully, but these errors were encountered: