elharo opened a new issue, #244:
URL: https://github.com/apache/maven-artifact-plugin/issues/244
In `CompareMojo.checkArtifact()` (line 291):
```java
} else if (!actualLength.equals(referenceLength)) {
```
`actualLength` comes from `actual.remove(prefix + ".length")` and can be
`null` when the freshly generated buildinfo is missing a `length` entry (for
example after printer issues). In that case `actualLength.equals(...)` throws a
`NullPointerException` instead of reporting the artifact as mismatched/missing.
Same applies to `actualSha512` (line 293).
Suggested fix: use `Objects.equals(actualLength, referenceLength)` /
`Objects.equals(actualSha512, referenceSha512)`.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]