From 2072604484ce48cd10cbc226b274af534f5267db Mon Sep 17 00:00:00 2001 From: JustArchi Date: Sun, 17 Sep 2017 18:24:05 +0200 Subject: [PATCH] Misc fix --- ArchiSteamFarm/ArchiWebHandler.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/ArchiSteamFarm/ArchiWebHandler.cs b/ArchiSteamFarm/ArchiWebHandler.cs index a36842cba..f1c8a11de 100644 --- a/ArchiSteamFarm/ArchiWebHandler.cs +++ b/ArchiSteamFarm/ArchiWebHandler.cs @@ -498,6 +498,10 @@ namespace ArchiSteamFarm { return null; } + if ((response.Assets == null) || (response.Assets.Count == 0) || (response.Descriptions == null) || (response.Descriptions.Count == 0)) { + return result; + } + Dictionary descriptionMap = new Dictionary(); foreach (Steam.InventoryResponse.Description description in response.Descriptions.Where(description => description != null)) { if (description.ClassID == 0) {