{"action":"created","issue":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/1443","repository_url":"https://api.github.com/repos/mapstruct/mapstruct","labels_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/1443/labels{/name}","comments_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/1443/comments","events_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/1443/events","html_url":"https://github.com/mapstruct/mapstruct/issues/1443","id":316452659,"number":1443,"title":"Skip not null properties on target","user":{"login":"thiagogjt","id":645187,"avatar_url":"https://avatars1.githubusercontent.com/u/645187?v=4","gravatar_id":"","url":"https://api.github.com/users/thiagogjt","html_url":"https://github.com/thiagogjt","followers_url":"https://api.github.com/users/thiagogjt/followers","following_url":"https://api.github.com/users/thiagogjt/following{/other_user}","gists_url":"https://api.github.com/users/thiagogjt/gists{/gist_id}","starred_url":"https://api.github.com/users/thiagogjt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thiagogjt/subscriptions","organizations_url":"https://api.github.com/users/thiagogjt/orgs","repos_url":"https://api.github.com/users/thiagogjt/repos","events_url":"https://api.github.com/users/thiagogjt/events{/privacy}","received_events_url":"https://api.github.com/users/thiagogjt/received_events","type":"User","site_admin":false},"labels":[{"id":5877854,"url":"https://api.github.com/repos/mapstruct/mapstruct/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-04-21T02:04:28Z","updated_at":"2018-04-21T16:38:57Z","closed_at":"2018-04-21T16:38:57Z","author_association":"NONE","body":"Hi folks!\r\nIs there a way to fill properties on target only if it have null values?\r\nEx:\r\n\r\nSource\r\nprop1 = \"val1\"\r\nprop2 = \"val2\"\r\n\r\nTarget\r\nprop1 = null\r\nprop2 = \"val3\"\r\n\r\nResult\r\nprop1 = \"val1\"\r\nprop2 = \"val3\"\r\n\r\nin other words:\r\n```\r\nif (target.prop1 == null) {\r\n   target.setProp1(source.prop1);\r\n}\r\nif (target.prop2 == null) {\r\n   target.setProp2(source.prop2);\r\n}\r\n\r\n```"},"comment":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/comments/383311359","html_url":"https://github.com/mapstruct/mapstruct/issues/1443#issuecomment-383311359","issue_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/1443","id":383311359,"user":{"login":"filiphr","id":6012094,"avatar_url":"https://avatars2.githubusercontent.com/u/6012094?v=4","gravatar_id":"","url":"https://api.github.com/users/filiphr","html_url":"https://github.com/filiphr","followers_url":"https://api.github.com/users/filiphr/followers","following_url":"https://api.github.com/users/filiphr/following{/other_user}","gists_url":"https://api.github.com/users/filiphr/gists{/gist_id}","starred_url":"https://api.github.com/users/filiphr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/filiphr/subscriptions","organizations_url":"https://api.github.com/users/filiphr/orgs","repos_url":"https://api.github.com/users/filiphr/repos","events_url":"https://api.github.com/users/filiphr/events{/privacy}","received_events_url":"https://api.github.com/users/filiphr/received_events","type":"User","site_admin":false},"created_at":"2018-04-21T16:38:57Z","updated_at":"2018-04-21T16:38:57Z","author_association":"MEMBER","body":"Please use [Stackoverflow](https://stackoverflow.com/questions/tagged/mapstruct) or [gitter](https://gitter.im/mapstruct/mapstruct-users) channel for questions.\r\n\r\nHave you read [Controlling checking result for 'null' properties in bean mapping\r\n](http://mapstruct.org/documentation/stable/reference/html/#checking-source-property-for-null-arguments. You would need to set it to [`NullValueCheckStrategy.ALWAYS`](http://mapstruct.org/documentation/stable/api/org/mapstruct/NullValueCheckStrategy.html#ALWAYS)"}}
{"actor":{"display_login":"filiphr"}}