{"action":"created","issue":{"url":"https://api.github.com/repos/searchbox-io/Jest/issues/142","labels_url":"https://api.github.com/repos/searchbox-io/Jest/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/searchbox-io/Jest/issues/142/comments","events_url":"https://api.github.com/repos/searchbox-io/Jest/issues/142/events","html_url":"https://github.com/searchbox-io/Jest/issues/142","id":40917631,"number":142,"title":"@JestId issue","user":{"login":"jsaimani","id":3541046,"avatar_url":"https://avatars.githubusercontent.com/u/3541046?v=3","gravatar_id":"","url":"https://api.github.com/users/jsaimani","html_url":"https://github.com/jsaimani","followers_url":"https://api.github.com/users/jsaimani/followers","following_url":"https://api.github.com/users/jsaimani/following{/other_user}","gists_url":"https://api.github.com/users/jsaimani/gists{/gist_id}","starred_url":"https://api.github.com/users/jsaimani/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsaimani/subscriptions","organizations_url":"https://api.github.com/users/jsaimani/orgs","repos_url":"https://api.github.com/users/jsaimani/repos","events_url":"https://api.github.com/users/jsaimani/events{/privacy}","received_events_url":"https://api.github.com/users/jsaimani/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2014-08-22T15:11:53Z","updated_at":"2015-01-16T21:18:18Z","closed_at":null,"body":"For a POJO with one of the fields which annotated with @JestId, the getSourceAsObject throws a NullPointerException. \r\n\r\nUnhandled exception occurred while converting source to the object . While saving the document the field annotated with @JestId is not set. \r\n\r\nLooks related to ES_METADATA_ID which is not being set on the source. \r\n"},"comment":{"url":"https://api.github.com/repos/searchbox-io/Jest/issues/comments/70323688","html_url":"https://github.com/searchbox-io/Jest/issues/142#issuecomment-70323688","issue_url":"https://api.github.com/repos/searchbox-io/Jest/issues/142","id":70323688,"user":{"login":"tomsen-san","id":6359950,"avatar_url":"https://avatars.githubusercontent.com/u/6359950?v=3","gravatar_id":"","url":"https://api.github.com/users/tomsen-san","html_url":"https://github.com/tomsen-san","followers_url":"https://api.github.com/users/tomsen-san/followers","following_url":"https://api.github.com/users/tomsen-san/following{/other_user}","gists_url":"https://api.github.com/users/tomsen-san/gists{/gist_id}","starred_url":"https://api.github.com/users/tomsen-san/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomsen-san/subscriptions","organizations_url":"https://api.github.com/users/tomsen-san/orgs","repos_url":"https://api.github.com/users/tomsen-san/repos","events_url":"https://api.github.com/users/tomsen-san/events{/privacy}","received_events_url":"https://api.github.com/users/tomsen-san/received_events","type":"User","site_admin":false},"created_at":"2015-01-16T21:18:18Z","updated_at":"2015-01-16T21:18:18Z","body":"Sorry, currently very short on time and my environment is gone. \nI did an index of a doc and retrieval with a Get by id. \nWill reproduce steps Next week and report back.\nThomas\nAm 14.01.2015 22:45 schrieb Cihat Keser <notifications@github.com>:Reproduction steps please.\r\n@tomsen-san In which case exactly do you end up in line 144 with document that has both source and _id (in the JSON)? If I'm not mistaken Search response always has the array and Get response is handled on line 160 instead.\r\n\r\n—Reply to this email directly or view it on GitHub."}}