diff --git a/ArchiSteamFarm/ArchiWebHandler.cs b/ArchiSteamFarm/ArchiWebHandler.cs index 9e7034c28..687eda734 100644 --- a/ArchiSteamFarm/ArchiWebHandler.cs +++ b/ArchiSteamFarm/ArchiWebHandler.cs @@ -445,6 +445,11 @@ namespace ArchiSteamFarm { [SuppressMessage("ReSharper", "FunctionComplexityOverflow")] internal async Task> GetMyInventory(bool tradableOnly = false, uint appID = Steam.Asset.SteamAppID, byte contextID = Steam.Asset.SteamCommunityContextID, IReadOnlyCollection wantedTypes = null, IReadOnlyCollection wantedRealAppIDs = null) { + if ((appID == 0) || (contextID == 0)) { + Bot.ArchiLogger.LogNullError(nameof(appID) + " || " + nameof(contextID)); + return null; + } + if (!await RefreshSessionIfNeeded().ConfigureAwait(false)) { return null; }