siom79 / japicmp

Comparison of two versions of a jar archive
https://siom79.github.io/japicmp
Apache License 2.0
712 stars 107 forks source link

NullPointerException when running a Maven Site Report #219

Closed jjlharrison closed 6 years ago

jjlharrison commented 6 years ago

I'm seeing the following when attempting to run as a site report with the breakBuildBasedOnSemanticVersioning option:

Caused by: java.lang.NullPointerException
    at japicmp.maven.JApiCmpMojo.breakBuildIfNecessary (JApiCmpMojo.java:412)
    at japicmp.maven.JApiCmpMojo.executeWithParameters (JApiCmpMojo.java:158)
    at japicmp.maven.JApiCmpReport.executeReport (JApiCmpReport.java:75)

I've created a full reproducer with more details at https://github.com/jjlharrison/japicmp-site-report-npe.

siom79 commented 6 years ago

Fixed with the latest commit. Thanks for reporting and creating a reproducer. If only every reporter would be so kind. :) Will be released with 0.13.0.

jjlharrison commented 6 years ago

@siom79: Thank you. I've confirmed that the latest commit is working at my end. 👍