Skip to content

Commit

Permalink
- Fixed another bug that I introduced when CodeQL fixed (NullReferenc…
Browse files Browse the repository at this point in the history
…eException, handler is null).

I reviewed all the changes related to (someVariable.Equals(someValue)), all of them should be ok.
  • Loading branch information
K4PS3 committed Oct 14, 2023
1 parent b4e9b39 commit 05e4ab4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Caliburn.Micro.Platform/Platforms/Maui/ActionMessage.cs
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,8 @@ void OnPropertyChanged(object s, PropertyChangedEventArgs e) {
public object Handler {
get => handler;
private set {
if (handler.Equals(value)) {
if (handler != null &&
handler.Equals(value)) {
return;
}

Expand Down

0 comments on commit 05e4ab4

Please sign in to comment.