Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release 1.0.1 #137

Merged
merged 3 commits into from
Dec 10, 2016
Merged

Release 1.0.1 #137

merged 3 commits into from
Dec 10, 2016

Conversation

nhaarman
Copy link
Collaborator

When stubbing with argument matchers, the following
scenario would cause a NullPointerException:

```
whenever(mock.doSomething(argThat { })).thenReturn("")
whenever(mock.doSomething(argThat { })).thenReturn("")
```

The second `argThat` invocation returns a `null` value,
which gets propagated into the function passed to the
first `argThat` invocation.

This commit filters `null` values to always evaluate to
`false` when provided to an argument matcher.
@nhaarman nhaarman merged commit 327d431 into master Dec 10, 2016
@nhaarman nhaarman deleted the release-1.0.1 branch December 10, 2016 15:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant