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

NullPointerException when class contains static final field with null value #116

Closed
lindmik opened this issue Jun 26, 2015 · 2 comments
Closed
Labels

Comments

@lindmik
Copy link

lindmik commented 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:

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
@lindmik 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
@jqno
Copy link
Owner

jqno commented Jun 26, 2015

Nice catch, thanks for reporting it. I'll fix it in the next version.

@jqno jqno added the accepted label Jun 26, 2015
@jqno
Copy link
Owner

jqno commented Jul 18, 2015

I've just released version 1.7.3, which fixes this.

@jqno jqno closed this as completed Jul 18, 2015
jqno pushed a commit that referenced this issue Aug 23, 2016
add social button in author-bio.html
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants