{"action":"created","issue":{"url":"https://api.github.com/repos/mockito/mockito-scala/issues/27","repository_url":"https://api.github.com/repos/mockito/mockito-scala","labels_url":"https://api.github.com/repos/mockito/mockito-scala/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/mockito/mockito-scala/issues/27/comments","events_url":"https://api.github.com/repos/mockito/mockito-scala/issues/27/events","html_url":"https://github.com/mockito/mockito-scala/issues/27","id":351950134,"node_id":"MDU6SXNzdWUzNTE5NTAxMzQ=","number":27,"title":"Feature request: no nulls by default.","user":{"login":"aselamal","id":1262338,"node_id":"MDQ6VXNlcjEyNjIzMzg=","avatar_url":"https://avatars3.githubusercontent.com/u/1262338?v=4","gravatar_id":"","url":"https://api.github.com/users/aselamal","html_url":"https://github.com/aselamal","followers_url":"https://api.github.com/users/aselamal/followers","following_url":"https://api.github.com/users/aselamal/following{/other_user}","gists_url":"https://api.github.com/users/aselamal/gists{/gist_id}","starred_url":"https://api.github.com/users/aselamal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aselamal/subscriptions","organizations_url":"https://api.github.com/users/aselamal/orgs","repos_url":"https://api.github.com/users/aselamal/repos","events_url":"https://api.github.com/users/aselamal/events{/privacy}","received_events_url":"https://api.github.com/users/aselamal/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"bbonanno","id":241804,"node_id":"MDQ6VXNlcjI0MTgwNA==","avatar_url":"https://avatars3.githubusercontent.com/u/241804?v=4","gravatar_id":"","url":"https://api.github.com/users/bbonanno","html_url":"https://github.com/bbonanno","followers_url":"https://api.github.com/users/bbonanno/followers","following_url":"https://api.github.com/users/bbonanno/following{/other_user}","gists_url":"https://api.github.com/users/bbonanno/gists{/gist_id}","starred_url":"https://api.github.com/users/bbonanno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbonanno/subscriptions","organizations_url":"https://api.github.com/users/bbonanno/orgs","repos_url":"https://api.github.com/users/bbonanno/repos","events_url":"https://api.github.com/users/bbonanno/events{/privacy}","received_events_url":"https://api.github.com/users/bbonanno/received_events","type":"User","site_admin":false},"assignees":[{"login":"bbonanno","id":241804,"node_id":"MDQ6VXNlcjI0MTgwNA==","avatar_url":"https://avatars3.githubusercontent.com/u/241804?v=4","gravatar_id":"","url":"https://api.github.com/users/bbonanno","html_url":"https://github.com/bbonanno","followers_url":"https://api.github.com/users/bbonanno/followers","following_url":"https://api.github.com/users/bbonanno/following{/other_user}","gists_url":"https://api.github.com/users/bbonanno/gists{/gist_id}","starred_url":"https://api.github.com/users/bbonanno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbonanno/subscriptions","organizations_url":"https://api.github.com/users/bbonanno/orgs","repos_url":"https://api.github.com/users/bbonanno/repos","events_url":"https://api.github.com/users/bbonanno/events{/privacy}","received_events_url":"https://api.github.com/users/bbonanno/received_events","type":"User","site_admin":false}],"milestone":null,"comments":1,"created_at":"2018-08-20T00:44:29Z","updated_at":"2018-08-22T09:35:56Z","closed_at":null,"author_association":"NONE","body":"In scala code `null` is  rarely used in favour instead of `Option.None` or for collections an empty collection. As a result the actual code is not checking or expecting null. \r\n\r\nThis doesn't play well with mockito which returns nulls by default for non-stubbed methods, is it possible to somehow wire up something to change this behaviour inside this framework itself. \r\n\r\nSo it could default for e.g. any `Option[T]` into `None`, `List[T]` into `Nil` , etc."},"comment":{"url":"https://api.github.com/repos/mockito/mockito-scala/issues/comments/414973482","html_url":"https://github.com/mockito/mockito-scala/issues/27#issuecomment-414973482","issue_url":"https://api.github.com/repos/mockito/mockito-scala/issues/27","id":414973482,"node_id":"MDEyOklzc3VlQ29tbWVudDQxNDk3MzQ4Mg==","user":{"login":"bbonanno","id":241804,"node_id":"MDQ6VXNlcjI0MTgwNA==","avatar_url":"https://avatars3.githubusercontent.com/u/241804?v=4","gravatar_id":"","url":"https://api.github.com/users/bbonanno","html_url":"https://github.com/bbonanno","followers_url":"https://api.github.com/users/bbonanno/followers","following_url":"https://api.github.com/users/bbonanno/following{/other_user}","gists_url":"https://api.github.com/users/bbonanno/gists{/gist_id}","starred_url":"https://api.github.com/users/bbonanno/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbonanno/subscriptions","organizations_url":"https://api.github.com/users/bbonanno/orgs","repos_url":"https://api.github.com/users/bbonanno/repos","events_url":"https://api.github.com/users/bbonanno/events{/privacy}","received_events_url":"https://api.github.com/users/bbonanno/received_events","type":"User","site_admin":false},"created_at":"2018-08-22T09:35:56Z","updated_at":"2018-08-22T09:35:56Z","author_association":"CONTRIBUTOR","body":"Hi @aselamal, is still work in progress (and part of a bigger refactor) but you can check the PR #30 if you like, it would be nice to have a second opinion on it"}}
{"actor":{"display_login":"bbonanno"}}