From db60e2f5247668f7bf36656db9c680ea4baa2b93 Mon Sep 17 00:00:00 2001 From: Christopher Schuchardt Date: Sat, 7 Dec 2024 12:59:15 -0500 Subject: [PATCH] Added null check --- src/Neo/Extensions/SmartContract/NeoTokenExtensions.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Neo/Extensions/SmartContract/NeoTokenExtensions.cs b/src/Neo/Extensions/SmartContract/NeoTokenExtensions.cs index 05f09034b6..0f2276b03d 100644 --- a/src/Neo/Extensions/SmartContract/NeoTokenExtensions.cs +++ b/src/Neo/Extensions/SmartContract/NeoTokenExtensions.cs @@ -22,6 +22,9 @@ public static class NeoTokenExtensions { public static IEnumerable<(UInt160 Address, BigInteger Balance)> GetAccounts(this NeoToken neoToken, DataCache snapshot) { + if (neoToken is null) + throw new ArgumentNullException(nameof(neoToken)); + if (snapshot is null) throw new ArgumentNullException(nameof(snapshot));