From edfd84ecd1e51ddac25128a1d90a86a15a363568 Mon Sep 17 00:00:00 2001 From: JustArchi Date: Fri, 12 Jan 2018 04:05:06 +0100 Subject: [PATCH] Misc --- ArchiSteamFarm/ArchiWebHandler.cs | 5 +++++ 1 file changed, 5 insertions(+) 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; }