From 06bfe010873ac8e8fca5a1470f49b994ddf6f453 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sat, 4 Jun 2022 21:41:07 +0200 Subject: [PATCH] Misc --- ArchiSteamFarm/Core/Utilities.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/ArchiSteamFarm/Core/Utilities.cs b/ArchiSteamFarm/Core/Utilities.cs index faabd5c9c..2bfce0f35 100644 --- a/ArchiSteamFarm/Core/Utilities.cs +++ b/ArchiSteamFarm/Core/Utilities.cs @@ -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) {