{"action":"closed","issue":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/516","labels_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/516/labels{/name}","comments_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/516/comments","events_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/516/events","html_url":"https://github.com/mapstruct/mapstruct/issues/516","id":64510946,"number":516,"title":"Adder source object does not have NPE check","user":{"login":"paul999","id":65767,"avatar_url":"https://avatars.githubusercontent.com/u/65767?v=3","gravatar_id":"","url":"https://api.github.com/users/paul999","html_url":"https://github.com/paul999","followers_url":"https://api.github.com/users/paul999/followers","following_url":"https://api.github.com/users/paul999/following{/other_user}","gists_url":"https://api.github.com/users/paul999/gists{/gist_id}","starred_url":"https://api.github.com/users/paul999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paul999/subscriptions","organizations_url":"https://api.github.com/users/paul999/orgs","repos_url":"https://api.github.com/users/paul999/repos","events_url":"https://api.github.com/users/paul999/events{/privacy}","received_events_url":"https://api.github.com/users/paul999/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/mapstruct/mapstruct/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-03-26T12:10:54Z","updated_at":"2015-04-04T15:49:59Z","closed_at":"2015-04-04T15:49:59Z","body":"Generated code: getDocuments() returns null.\r\n```java\r\n        if ( dossier != null ) {\r\n            blkWbbDossierEntity.setPre1987Bln( fromBoolean( dossier.getPollutionStartedBefore1987() ) );\r\n            blkWbbDossierEntity.setIdAuthority( dossier.getDossierIdLocalAuthority() );\r\n            for ( DocumentDto blkWbbDocument : dossier.getDocuments() ) {\r\n                blkWbbDossierEntity.addBlkWbbDocument( toEntity( blkWbbDocument ) );\r\n            }\r\n```"}}