Skip to content

Commit

Permalink
fixed files form Mockito #38
Browse files Browse the repository at this point in the history
  • Loading branch information
tdurieux committed Mar 7, 2017
1 parent c436d59 commit 206f384
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,6 @@ private boolean safelyMatches(Matcher m, Object arg) {
}

private boolean toStringEquals(Matcher m, Object arg) {
return StringDescription.toString(m).equals(arg.toString());
return StringDescription.toString(m).equals(arg == null? "null" : arg.toString());
}
}

0 comments on commit 206f384

Please sign in to comment.