Skip to content

Commit

Permalink
Fix NRE (#657)
Browse files Browse the repository at this point in the history
  • Loading branch information
kronic committed May 10, 2024
1 parent d0c59bf commit 6bd466f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -533,7 +533,7 @@ public static IObservable<bool> IsValid<TViewModel>(this TViewModel viewModel)
viewModel.ValidationContext.Add(validation);
return new ValidationHelper(validation, Disposable.Create(() =>
{
viewModel.ValidationContext.Remove(validation);
viewModel.ValidationContext?.Remove(validation);
validation.Dispose();
}));
}
Expand Down

0 comments on commit 6bd466f

Please sign in to comment.