This commit is contained in:
JustArchi 2022-06-04 21:41:07 +02:00
parent bcceb0c39c
commit 06bfe01087
No known key found for this signature in database
GPG key ID: 6B138B4C64555AEA

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) {