{"action":"created","issue":{"url":"https://api.github.com/repos/astaxie/beego/issues/2031","repository_url":"https://api.github.com/repos/astaxie/beego","labels_url":"https://api.github.com/repos/astaxie/beego/issues/2031/labels{/name}","comments_url":"https://api.github.com/repos/astaxie/beego/issues/2031/comments","events_url":"https://api.github.com/repos/astaxie/beego/issues/2031/events","html_url":"https://github.com/astaxie/beego/issues/2031","id":164048984,"number":2031,"title":"beegoAppConfig.Strings will cause panic","user":{"login":"suwey","id":1539902,"avatar_url":"https://avatars.githubusercontent.com/u/1539902?v=3","gravatar_id":"","url":"https://api.github.com/users/suwey","html_url":"https://github.com/suwey","followers_url":"https://api.github.com/users/suwey/followers","following_url":"https://api.github.com/users/suwey/following{/other_user}","gists_url":"https://api.github.com/users/suwey/gists{/gist_id}","starred_url":"https://api.github.com/users/suwey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/suwey/subscriptions","organizations_url":"https://api.github.com/users/suwey/orgs","repos_url":"https://api.github.com/users/suwey/repos","events_url":"https://api.github.com/users/suwey/events{/privacy}","received_events_url":"https://api.github.com/users/suwey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-06T10:49:20Z","updated_at":"2016-07-08T02:56:34Z","closed_at":null,"body":"You can fix this in config.go.\r\n\r\n\r\n```\r\nfunc (b *beegoAppConfig) Strings(key string) []string {\r\n\tif v := b.innerConfig.Strings(BConfig.RunMode + \"::\" + key); v[0] != \"\" {\r\n\t\treturn v\r\n\t}\r\n\treturn b.innerConfig.Strings(key)\r\n}\r\n```\r\n\r\nThe code above works fine in older version, but will cause panic after updated. \r\nThe reason is now `b.innerConfig.Strings` will not return `string[]` when empty but will return `nil`, and this nil will cause panic when it run into `v[0] != \"\"`."},"comment":{"url":"https://api.github.com/repos/astaxie/beego/issues/comments/231263761","html_url":"https://github.com/astaxie/beego/issues/2031#issuecomment-231263761","issue_url":"https://api.github.com/repos/astaxie/beego/issues/2031","id":231263761,"user":{"login":"youngsterxyf","id":834231,"avatar_url":"https://avatars.githubusercontent.com/u/834231?v=3","gravatar_id":"","url":"https://api.github.com/users/youngsterxyf","html_url":"https://github.com/youngsterxyf","followers_url":"https://api.github.com/users/youngsterxyf/followers","following_url":"https://api.github.com/users/youngsterxyf/following{/other_user}","gists_url":"https://api.github.com/users/youngsterxyf/gists{/gist_id}","starred_url":"https://api.github.com/users/youngsterxyf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/youngsterxyf/subscriptions","organizations_url":"https://api.github.com/users/youngsterxyf/orgs","repos_url":"https://api.github.com/users/youngsterxyf/repos","events_url":"https://api.github.com/users/youngsterxyf/events{/privacy}","received_events_url":"https://api.github.com/users/youngsterxyf/received_events","type":"User","site_admin":false},"created_at":"2016-07-08T02:56:34Z","updated_at":"2016-07-08T02:56:34Z","body":"@suwey duplicate issue，refer to issue#2027"}}
{"actor":{"display_login":"youngsterxyf"}}