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
The Version.equals implementation updated with 2.16.0 for comparing snapshots raises an NPE if snapshotInfo is null.
I recommend to sanitize the snapshoptInfo within constructor as done for groupId and artifactId.
The text was updated successfully, but these errors were encountered:
Thank you for reporting this @TimSchweers . Yes, that sounds like a good idea to handle (regardless of whether to sanitize or null-check in equals()), avoid NPE.
cowtowncoder
changed the title
NPE in Version.equals
NPE in Version.equals() if snapshot-info nullNov 22, 2023
Hi!
The
Version.equals
implementation updated with 2.16.0 for comparing snapshots raises an NPE if snapshotInfo is null.I recommend to sanitize the snapshoptInfo within constructor as done for groupId and artifactId.
The text was updated successfully, but these errors were encountered: