diff --git a/src/Avalonia.Xaml.Interactions.Custom/Actions/ChangeAvaloniaPropertyAction.cs b/src/Avalonia.Xaml.Interactions.Custom/Actions/ChangeAvaloniaPropertyAction.cs index 2aa7b0756..ce7f39318 100644 --- a/src/Avalonia.Xaml.Interactions.Custom/Actions/ChangeAvaloniaPropertyAction.cs +++ b/src/Avalonia.Xaml.Interactions.Custom/Actions/ChangeAvaloniaPropertyAction.cs @@ -143,7 +143,7 @@ private void ValidateTargetProperty(AvaloniaProperty? targetProperty) { if (targetProperty is null) { - throw new ArgumentException(nameof(TargetProperty)); + throw new ArgumentNullException(nameof(targetProperty)); } else if (targetProperty.IsReadOnly) {