{"action":"opened","issue":{"url":"https://api.github.com/repos/wvanbergen/kafka/issues/81","labels_url":"https://api.github.com/repos/wvanbergen/kafka/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/wvanbergen/kafka/issues/81/comments","events_url":"https://api.github.com/repos/wvanbergen/kafka/issues/81/events","html_url":"https://github.com/wvanbergen/kafka/issues/81","id":110741136,"number":81,"title":"nil message received causing NPE","user":{"login":"rrh","id":1577878,"avatar_url":"https://avatars.githubusercontent.com/u/1577878?v=3","gravatar_id":"","url":"https://api.github.com/users/rrh","html_url":"https://github.com/rrh","followers_url":"https://api.github.com/users/rrh/followers","following_url":"https://api.github.com/users/rrh/following{/other_user}","gists_url":"https://api.github.com/users/rrh/gists{/gist_id}","starred_url":"https://api.github.com/users/rrh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rrh/subscriptions","organizations_url":"https://api.github.com/users/rrh/orgs","repos_url":"https://api.github.com/users/rrh/repos","events_url":"https://api.github.com/users/rrh/events{/privacy}","received_events_url":"https://api.github.com/users/rrh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-09T21:46:06Z","updated_at":"2015-10-09T21:46:06Z","closed_at":null,"body":"The case messages <- message\r\nhere at https://github.com/wvanbergen/kafka/blob/master/consumergroup/consumer_group.go#L413\r\nappears to succeed, but there are situations I see where message == nil.  This cause a problem when message.Offset is accessed in the case arm.  I have not tried to further characterize what makes message == nil.\r\n\r\nI'm using go 1.5.1 on ubuntu 14.  For my present set of tests, I'm also compiling and runing -race, although I have not run anything to rule in/rule out these situations"}}