This commit is contained in:
JustArchi
2022-06-04 21:41:07 +02:00
parent bcceb0c39c
commit 06bfe01087

View File

@@ -196,7 +196,11 @@ public static class Utilities {
}
[PublicAPI]
public static IElement? SelectSingleElementNode(this IElement element, string xpath) => (IElement?) element.SelectSingleNode(xpath);
public static IElement? SelectSingleElementNode(this IElement element, string xpath) {
ArgumentNullException.ThrowIfNull(element);
return (IElement?) element.SelectSingleNode(xpath);
}
[PublicAPI]
public static IElement? SelectSingleNode(this IDocument document, string xpath) {