We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f4ef543 commit fc27d57Copy full SHA for fc27d57
src/Atc.Wpf.SourceGenerators/Extensions/StringExtensions.cs
@@ -172,6 +172,11 @@ public static string StripPrefixFromField(
172
public static string EnsureValidRelayCommandName(
173
this string relayCommandName)
174
{
175
+ if (relayCommandName is null)
176
+ {
177
+ throw new ArgumentNullException(nameof(relayCommandName));
178
+ }
179
+
180
if (relayCommandName.EndsWith(NameConstants.Command + NameConstants.Command, StringComparison.Ordinal))
181
182
relayCommandName = relayCommandName.Substring(0, relayCommandName.Length - NameConstants.Command.Length);
0 commit comments