{"action":"opened","issue":{"url":"https://api.github.com/repos/mapstruct/mapstruct/issues/534","labels_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/534/labels{/name}","comments_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/534/comments","events_url":"https://api.github.com/repos/mapstruct/mapstruct/issues/534/events","html_url":"https://github.com/mapstruct/mapstruct/issues/534","id":67463643,"number":534,"title":"NullValueMappingStrategy.RETURN_DEFAULT generates invalid code for arrays","user":{"login":"DCstewieG","id":737571,"avatar_url":"https://avatars.githubusercontent.com/u/737571?v=3","gravatar_id":"","url":"https://api.github.com/users/DCstewieG","html_url":"https://github.com/DCstewieG","followers_url":"https://api.github.com/users/DCstewieG/followers","following_url":"https://api.github.com/users/DCstewieG/following{/other_user}","gists_url":"https://api.github.com/users/DCstewieG/gists{/gist_id}","starred_url":"https://api.github.com/users/DCstewieG/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DCstewieG/subscriptions","organizations_url":"https://api.github.com/users/DCstewieG/orgs","repos_url":"https://api.github.com/users/DCstewieG/repos","events_url":"https://api.github.com/users/DCstewieG/events{/privacy}","received_events_url":"https://api.github.com/users/DCstewieG/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-09T22:25:13Z","updated_at":"2015-04-09T22:25:13Z","closed_at":null,"body":"My mapper:\r\n\r\n    @Mapper\r\n    public interface MyMapper\r\n    {\r\n        MyObjectB[] map(MyObjectA[] array);\r\n    }\r\n\r\nGenerated code:\r\n\r\n    @Override\r\n    public MyObjectB[] map(MyObjectA[] array) {\r\n        if ( array == null ) {\r\n            return new MyObjectB[];\r\n        }\r\n    \r\n        ...\r\n    }\r\n\r\n Should be:\r\n\r\n    return new MyObjectB[0];"}}