-
Notifications
You must be signed in to change notification settings - Fork 15
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 @ ClirrReportGenerator.java:64 #7
Comments
I ran into this same issue too, I think it happens when you have new stuff in a file (https://github.com/mojohaus/clirr-maven-plugin/blob/master/src/main/java/org/codehaus/mojo/clirr/ClirrReportGenerator.java). I think the from for the ApiChange gets initialized to null. If it helps any, I reverted back to 2.6.2 and things started building. |
I'm also running into this issue. Strangely, running the clirr goal by itself (mvn org.codehaus.mojo:clirr-maven-plugin:2.7:clirr) succeeds. The change that I'm seeing show up (which I expect) is that a protected method was removed from a class. I don't suspect this to be the cause, however, since running the goal stand-alone succeeds. |
I take that back; I think I had bumped my dependency version down (per the suggestion from @AnEmortalKid) and then tried running the stand-alone goal without cleaning the directory. I think I may have found the root cause: I have a class that changed to an enum (went from Java 4 to Java 6) and the Message id is 5000, which it looks like the plugin doesn't recognize. I can't guarantee that this is what is causing the NPE, but definitely looks suspicious. |
If I remove the clirr-maven-plugin from the build section and run the standalone clirr goal (only configured in the reporting section in the pom), it succeeds! The plot thickens... |
Debugging more, it is definitely related to the Message id 5000 (added class to superclasses). The APIChange does not have a from because the APIDifference for that does not have an affected method or affected field. APIChange is new with version 2.7 and seems to be the root of the problem, as it only handles method and field changes, but not a subset of the other changes that clirr-core recognizes. |
Quick fix for NullPointerException - fixes mojohaus#7
Relevant issues: + mojohaus/clirr-maven-plugin#3 (fixed in 2.7) + mojohaus/clirr-maven-plugin#7
git-svn-id: https://svn.apache.org/repos/asf/commons/proper/jcs/trunk@1762369 13f79535-47bb-0310-9956-ffa450edef68
Version 2.7 triggered a NPE: mojohaus/clirr-maven-plugin#7
While running
mvn clean site -X
with the following configuration for clirrI run into the following null pointer exception.
If I knew what API changed caused it I'd provide a minimal example. Best I can do currently is provide my current project:
https://github.com/Simmetrics/simmetrics/tree/feature-v4.0.0
Call with
mvn clean site -P reports -X
The text was updated successfully, but these errors were encountered: