You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Basically, I created a new map (LinkedHashMap in this case) based on the original map (Properties in this case), and the NullPointerException is avoided since LinkedHashMap supports null values.
Describe the bug
Commit 498ee5b introduced a regression in
AbstractMapAssert.containsExactly
.Specifically, it is not always safe to put
null
into aMap
.assertj/assertj-core/src/main/java/org/assertj/core/internal/Maps.java
Line 589 in 887f97b
Test case reproducing the bug
The following now fails with a
NullPointerException
.The text was updated successfully, but these errors were encountered: