{"action":"closed","issue":{"url":"https://api.github.com/repos/bottlenose-inc/rapidjson/issues/1","repository_url":"https://api.github.com/repos/bottlenose-inc/rapidjson","labels_url":"https://api.github.com/repos/bottlenose-inc/rapidjson/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/bottlenose-inc/rapidjson/issues/1/comments","events_url":"https://api.github.com/repos/bottlenose-inc/rapidjson/issues/1/events","html_url":"https://github.com/bottlenose-inc/rapidjson/issues/1","id":156870556,"number":1,"title":"GetArray() panic on empty array v1.1.7","user":{"login":"reivaj05","id":10521119,"avatar_url":"https://avatars.githubusercontent.com/u/10521119?v=3","gravatar_id":"","url":"https://api.github.com/users/reivaj05","html_url":"https://github.com/reivaj05","followers_url":"https://api.github.com/users/reivaj05/followers","following_url":"https://api.github.com/users/reivaj05/following{/other_user}","gists_url":"https://api.github.com/users/reivaj05/gists{/gist_id}","starred_url":"https://api.github.com/users/reivaj05/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/reivaj05/subscriptions","organizations_url":"https://api.github.com/users/reivaj05/orgs","repos_url":"https://api.github.com/users/reivaj05/repos","events_url":"https://api.github.com/users/reivaj05/events{/privacy}","received_events_url":"https://api.github.com/users/reivaj05/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-05-25T23:12:13Z","updated_at":"2016-06-01T17:04:29Z","closed_at":"2016-06-01T17:04:29Z","body":"\r\n    package main\r\n\r\n\timport (\r\n\t\t\"fmt\"\r\n\r\n\t\trj \"github.com/bottlenose-inc/rapidjson\"\r\n\t)\r\n\r\n\tfunc main() {\r\n\r\n\t\tdoc, _ := rj.NewParsedStringJson(`{\"test\":[]}`)\r\n\t\tct := doc.GetContainer()\r\n\t\tarrM, _ := ct.GetMember(\"test\")\r\n\t\tfmt.Println(arrM)\r\n\t\tarray, _, _ := arrM.GetArray()\r\n\t\tfmt.Println(array)\r\n\t}\r\n\r\nResult:\r\n\r\n    []\r\n\tpanic: runtime error: index out of range\r\n\r\n\tgoroutine 1 [running]:\r\n\tpanic(0x4f8a40, 0xc82000a110)\r\n\t\t/usr/local/go/src/runtime/panic.go:464 +0x3e6\r\n\tgithub.com/bottlenose-inc/rapidjson.(*Container).GetArray(0xc82000a3c0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0)\r\n\t\t/home/javiersv05/work/src/github.com/bottlenose-inc/rapidjson/rapidjson.go:397 +0x1bd\r\n\tmain.main()\r\n\t\t/home/javiersv05/work/src/github.com/bottlenose-inc/oh-connector-moreover/main.go:15 +0x192\r\n\texit status 2\r\n\r\n\r\n"}}
{"actor":{"display_login":"reivaj05"}}