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
I just updated EqualsVerifier from version 1.5 to version 1.7.2, and it now fails on a class that has a constant field with null value. The verification fails with the following stack trace:
java.lang.AssertionError: java.lang.NullPointerException:
For more information, go to: http://www.jqno.nl/equalsverifier/errormessages
at nl.jqno.equalsverifier.EqualsVerifier.handleError(EqualsVerifier.java:414)
at nl.jqno.equalsverifier.EqualsVerifier.verify(EqualsVerifier.java:400)
at ...
Caused by: java.lang.NullPointerException
at nl.jqno.equalsverifier.FieldsChecker$ReflexivityFieldCheck.checkValueReflexivity(FieldsChecker.java:306)
at nl.jqno.equalsverifier.FieldsChecker$ReflexivityFieldCheck.execute(FieldsChecker.java:282)
at nl.jqno.equalsverifier.FieldInspector.check(FieldInspector.java:37)
at nl.jqno.equalsverifier.FieldsChecker.check(FieldsChecker.java:62)
at nl.jqno.equalsverifier.EqualsVerifier.verifyWithExamples(EqualsVerifier.java:460)
at nl.jqno.equalsverifier.EqualsVerifier.performVerification(EqualsVerifier.java:427)
at nl.jqno.equalsverifier.EqualsVerifier.verify(EqualsVerifier.java:394)
... 24 more
The text was updated successfully, but these errors were encountered:
lindmik
changed the title
NullPointerException when class contains public static final field with null value
NullPointerException when class contains static final field with null value
Jun 26, 2015
I just updated EqualsVerifier from version 1.5 to version 1.7.2, and it now fails on a class that has a constant field with null value. The verification fails with the following stack trace:
The text was updated successfully, but these errors were encountered: