{"action":"created","issue":{"url":"https://api.github.com/repos/Jessecar96/SteamBot/issues/813","labels_url":"https://api.github.com/repos/Jessecar96/SteamBot/issues/813/labels{/name}","comments_url":"https://api.github.com/repos/Jessecar96/SteamBot/issues/813/comments","events_url":"https://api.github.com/repos/Jessecar96/SteamBot/issues/813/events","html_url":"https://github.com/Jessecar96/SteamBot/issues/813","id":108190180,"number":813,"title":"Error when looping through inventory","user":{"login":"RaXoR","id":9955304,"avatar_url":"https://avatars.githubusercontent.com/u/9955304?v=3","gravatar_id":"","url":"https://api.github.com/users/RaXoR","html_url":"https://github.com/RaXoR","followers_url":"https://api.github.com/users/RaXoR/followers","following_url":"https://api.github.com/users/RaXoR/following{/other_user}","gists_url":"https://api.github.com/users/RaXoR/gists{/gist_id}","starred_url":"https://api.github.com/users/RaXoR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RaXoR/subscriptions","organizations_url":"https://api.github.com/users/RaXoR/orgs","repos_url":"https://api.github.com/users/RaXoR/repos","events_url":"https://api.github.com/users/RaXoR/events{/privacy}","received_events_url":"https://api.github.com/users/RaXoR/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-09-24T18:44:20Z","updated_at":"2015-09-28T22:00:34Z","closed_at":null,"body":"this is the error I got:\r\n[TRADEMANAGER] general error caught: System.NullReferenceException: Object refer\r\nence not set to an instance of an object.\r\n   at SteamTrade.Inventory.GetItemsByDefindex(Int32 defindex) in C:\\Users\\Hunter\r\n\\Desktop\\SteamBot\\SteamTrade\\Inventory.cs:line 84\r\n   at SteamTrade.Trade.AddItemByDefindex(Int32 defindex) in C:\\Users\\Hunter\\Desk\r\ntop\\SteamBot\\SteamTrade\\Trade.cs:line 257\r\n   at SteamBot.SimpleUserHandler.OnTradeAddItem(Item schemaItem, Item inventoryI\r\ntem) in C:\\Users\\Hunter\\Desktop\\SteamBot\\SteamBot\\SimpleUserHandler.cs:line 110\r\n   at SteamTrade.Trade.FireOnUserAddItem(TradeEvent tradeEvent) in C:\\Users\\Hunt\r\ner\\Desktop\\SteamBot\\SteamTrade\\Trade.cs:line 623\r\n   at SteamTrade.Trade.Poll() in C:\\Users\\Hunter\\Desktop\\SteamBot\\SteamTrade\\Tra\r\nde.cs:line 537\r\n   at SteamTrade.TradeManager.<StartTradeThread>b__40_0() in C:\\Users\\Hunter\\Des\r\nktop\\SteamBot\\SteamTrade\\TradeManager.cs:line 273\r\nTrade thread shutting down.\r\n\r\nwhen it tries to loop trought the bot inventory the trading shuts down :( please help!\r\nMaybe because I kinda changed all to work with Dota 2?\r\nurgent!"},"comment":{"url":"https://api.github.com/repos/Jessecar96/SteamBot/issues/comments/143886115","html_url":"https://github.com/Jessecar96/SteamBot/issues/813#issuecomment-143886115","issue_url":"https://api.github.com/repos/Jessecar96/SteamBot/issues/813","id":143886115,"user":{"login":"bartico6","id":3310937,"avatar_url":"https://avatars.githubusercontent.com/u/3310937?v=3","gravatar_id":"","url":"https://api.github.com/users/bartico6","html_url":"https://github.com/bartico6","followers_url":"https://api.github.com/users/bartico6/followers","following_url":"https://api.github.com/users/bartico6/following{/other_user}","gists_url":"https://api.github.com/users/bartico6/gists{/gist_id}","starred_url":"https://api.github.com/users/bartico6/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bartico6/subscriptions","organizations_url":"https://api.github.com/users/bartico6/orgs","repos_url":"https://api.github.com/users/bartico6/repos","events_url":"https://api.github.com/users/bartico6/events{/privacy}","received_events_url":"https://api.github.com/users/bartico6/received_events","type":"User","site_admin":false},"created_at":"2015-09-28T22:00:34Z","updated_at":"2015-09-28T22:00:34Z","body":">at SteamTrade.Inventory.GetItemsByDefindex(Int32 defindex) in C:\\Users\\Hunter\r\n\\Desktop\\SteamBot\\SteamTrade\\Inventory.cs:line 84\r\nThis means \"GetItemsByDefindex\" from someone's inventory returns null - so there are no items with this defindex OR the whole inventory is null. Also, does DotA2 use defindexes? Research their inventory system a bit more."}}