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
Assertions using extracting(Function... extractors) over an actual null object/reference fail with NullPointerException:
java.lang.NullPointerException
at org.assertj.core.api.AbstractObjectAssert.lambda$extractingForProxy$0(AbstractObjectAssert.java:926)
at java.base/...
at org.assertj.core.api.AbstractObjectAssert.extractingForProxy(AbstractObjectAssert.java:927)
at org.assertj.core.api.AbstractObjectAssert.extracting(AbstractObjectAssert.java:917)
java.lang.IllegalArgumentException: The object to extract fields/properties from should not be null
at org.assertj.core.util.Preconditions.checkArgument(Preconditions.java:131)
at org.assertj.core.extractor.ByNameMultipleExtractor.apply(ByNameMultipleExtractor.java:36)
at org.assertj.core.extractor.ByNameMultipleExtractor.apply(ByNameMultipleExtractor.java:24)
at org.assertj.core.api.AbstractObjectAssert.extracting(AbstractObjectAssert.java:789)
I think the former usage should match the latter behavior.
The text was updated successfully, but these errors were encountered:
Assertions using
extracting(Function... extractors)
over an actualnull
object/reference fail withNullPointerException
:Test case reproducing the bug
For comparison, using
extracting(String... propertiesOrFields)
:yields:
I think the former usage should match the latter behavior.
The text was updated successfully, but these errors were encountered: