{"action":"created","issue":{"url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/494","repository_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic","labels_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/494/labels{/name}","comments_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/494/comments","events_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/494/events","html_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/494","id":132549279,"number":494,"title":"Fixed ArrayIndexOutOfBoundsException","user":{"login":"larsfinander","id":12903749,"avatar_url":"https://avatars.githubusercontent.com/u/12903749?v=3","gravatar_id":"","url":"https://api.github.com/users/larsfinander","html_url":"https://github.com/larsfinander","followers_url":"https://api.github.com/users/larsfinander/followers","following_url":"https://api.github.com/users/larsfinander/following{/other_user}","gists_url":"https://api.github.com/users/larsfinander/gists{/gist_id}","starred_url":"https://api.github.com/users/larsfinander/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/larsfinander/subscriptions","organizations_url":"https://api.github.com/users/larsfinander/orgs","repos_url":"https://api.github.com/users/larsfinander/repos","events_url":"https://api.github.com/users/larsfinander/events{/privacy}","received_events_url":"https://api.github.com/users/larsfinander/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-02-09T22:03:32Z","updated_at":"2016-02-10T15:54:12Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/pulls/494","html_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/494","diff_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/494.diff","patch_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/494.patch"},"body":"Fixed ArrayIndexOutOfBoundsException from events that lack values to some fields.\r\n\r\nWe are seeing around 500k ArrayIndexOutOfBounds exceptions from a number of the different XXXX (Connect) SmartApps that control LAN devices. The reason is that events are received that are missing values for certain fields and that causes an exception when a non existing value is getting accessed.\r\n\r\nBelow is an example that would cause an exception when parsing the \"ssdpPath:\" field (.split(\":\")[1] fails)\r\n\r\ndevicetype:04, mac:00166C8C6901, networkAddress:00000000, deviceAddress:0000, stringCount:04, ssdpPath:, ssdpUSN:uuid:Upnp-BasicDevice-1_0-00166C8C6901::upnp:rootdevice, ssdpTerm:, ssdpNTS:ssdp:aliv\r\n\r\nThis is a fix to that problem.\r\n"},"comment":{"url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/comments/182442316","html_url":"https://github.com/SmartThingsCommunity/SmartThingsPublic/pull/494#issuecomment-182442316","issue_url":"https://api.github.com/repos/SmartThingsCommunity/SmartThingsPublic/issues/494","id":182442316,"user":{"login":"tylerlange","id":6922351,"avatar_url":"https://avatars.githubusercontent.com/u/6922351?v=3","gravatar_id":"","url":"https://api.github.com/users/tylerlange","html_url":"https://github.com/tylerlange","followers_url":"https://api.github.com/users/tylerlange/followers","following_url":"https://api.github.com/users/tylerlange/following{/other_user}","gists_url":"https://api.github.com/users/tylerlange/gists{/gist_id}","starred_url":"https://api.github.com/users/tylerlange/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tylerlange/subscriptions","organizations_url":"https://api.github.com/users/tylerlange/orgs","repos_url":"https://api.github.com/users/tylerlange/repos","events_url":"https://api.github.com/users/tylerlange/events{/privacy}","received_events_url":"https://api.github.com/users/tylerlange/received_events","type":"User","site_admin":false},"created_at":"2016-02-10T15:54:12Z","updated_at":"2016-02-10T15:54:12Z","body":"@juano2310 "}}