{"action":"created","issue":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/9528","labels_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/9528/labels{/name}","comments_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/9528/comments","events_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/9528/events","html_url":"https://github.com/OpenRA/OpenRA/pull/9528","id":109648982,"number":9528,"title":"Fix a possible crash in ResourceLayer","user":{"login":"abcdefg30","id":7704140,"avatar_url":"https://avatars.githubusercontent.com/u/7704140?v=3","gravatar_id":"","url":"https://api.github.com/users/abcdefg30","html_url":"https://github.com/abcdefg30","followers_url":"https://api.github.com/users/abcdefg30/followers","following_url":"https://api.github.com/users/abcdefg30/following{/other_user}","gists_url":"https://api.github.com/users/abcdefg30/gists{/gist_id}","starred_url":"https://api.github.com/users/abcdefg30/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/abcdefg30/subscriptions","organizations_url":"https://api.github.com/users/abcdefg30/orgs","repos_url":"https://api.github.com/users/abcdefg30/repos","events_url":"https://api.github.com/users/abcdefg30/events{/privacy}","received_events_url":"https://api.github.com/users/abcdefg30/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-03T22:22:16Z","updated_at":"2015-10-04T19:15:09Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/OpenRA/OpenRA/pulls/9528","html_url":"https://github.com/OpenRA/OpenRA/pull/9528","diff_url":"https://github.com/OpenRA/OpenRA/pull/9528.diff","patch_url":"https://github.com/OpenRA/OpenRA/pull/9528.patch"},"body":"Fixes following crash:\r\n```\r\nTiberian Sun Mod at Version {DEV_VERSION}\r\non map 88cead46c1e5f57c7a6307bdcd8d27fefe7b805a (Name your map here by Your name here).\r\nOperating System: Windows (Microsoft Windows NT 6.2.9200.0)\r\nRuntime Version: .NET CLR 4.0.30319.34209\r\nException of type `System.IndexOutOfRangeException`: Index out of bounds. (Der Index war außerhalb des Arraybereichs.)\r\n   at OpenRA.CellLayer`1.get_Item(CPos cell) in \\OpenRA\\OpenRA.Game\\Map\\CellLayer.cs:Line 82.\r\n   at OpenRA.Mods.Common.Traits.ResourceLayer.GetResource(CPos cell)\r\n   at OpenRA.Mods.Common.Traits.SeedsResource.<Seed>b__4(CPos p)\r\n   at System.Linq.Enumerable.<SkipWhileIterator>d__52`1.MoveNext()\r\n   at System.Linq.Enumerable.<CastIterator>d__b1`1.MoveNext()\r\n   at System.Linq.Enumerable.FirstOrDefault[TSource](IEnumerable`1 source)\r\n   at OpenRA.Mods.Common.Traits.SeedsResource.Seed(Actor self)\r\n   at OpenRA.Mods.Common.Traits.SeedsResource.Tick(Actor self)\r\n   at OpenRA.World.<Tick>b__a(TraitPair`1 x) in \\OpenRA\\OpenRA.Game\\World.cs:Line 287.\r\n   at OpenRA.WorldUtils.DoTimed[T](IEnumerable`1 e, Action`1 a, String text) in \\OpenRA\\OpenRA.Game\\WorldUtils.cs:Line 53.\r\n   at OpenRA.World.Tick() in \\OpenRA\\OpenRA.Game\\World.cs:Line 0.\r\n   at OpenRA.Game.InnerLogicTick(OrderManager orderManager) in \\OpenRA\\OpenRA.Game\\Game.cs:Line 475.\r\n   at OpenRA.Game.LogicTick() in \\OpenRA\\OpenRA.Game\\Game.cs:Line 499.\r\n   at OpenRA.Game.Loop() in \\OpenRA\\OpenRA.Game\\Game.cs:Line 623.\r\n   at OpenRA.Game.Run() in \\OpenRA\\OpenRA.Game\\Game.cs:Line 663.\r\n   at OpenRA.Program.Run(String[] args) in \\OpenRA\\OpenRA.Game\\Support\\Program.cs:Line 117.\r\n   at OpenRA.Program.Main(String[] args) in \\OpenRA\\OpenRA.Game\\Support\\Program.cs:Line 39.\r\n```\r\n\r\nI'm not sure how I got it, probably due to placing blossom trees near/at the map cordon."},"comment":{"url":"https://api.github.com/repos/OpenRA/OpenRA/issues/comments/145378989","html_url":"https://github.com/OpenRA/OpenRA/pull/9528#issuecomment-145378989","issue_url":"https://api.github.com/repos/OpenRA/OpenRA/issues/9528","id":145378989,"user":{"login":"pchote","id":167819,"avatar_url":"https://avatars.githubusercontent.com/u/167819?v=3","gravatar_id":"","url":"https://api.github.com/users/pchote","html_url":"https://github.com/pchote","followers_url":"https://api.github.com/users/pchote/followers","following_url":"https://api.github.com/users/pchote/following{/other_user}","gists_url":"https://api.github.com/users/pchote/gists{/gist_id}","starred_url":"https://api.github.com/users/pchote/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pchote/subscriptions","organizations_url":"https://api.github.com/users/pchote/orgs","repos_url":"https://api.github.com/users/pchote/repos","events_url":"https://api.github.com/users/pchote/events{/privacy}","received_events_url":"https://api.github.com/users/pchote/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T19:15:09Z","updated_at":"2015-10-04T19:15:09Z","body":"That screenshot looks like your map has a bogus cordon, but there's no harm in this check so :+1:"}}