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 calling goals explicitly #8

Closed
chrisdutz opened this issue Apr 16, 2018 · 1 comment
Closed

NullPointerException when calling goals explicitly #8

chrisdutz opened this issue Apr 16, 2018 · 1 comment
Labels
Milestone

Comments

@chrisdutz
Copy link

In my current project I'm doing a Maven build like this:

mvn clean install site site:stage

It seems the "site:stage" in the end causes a NPE in MojoTimer.java (110) as the collection of phases lifeCyclePhases in BuildTimeProfiller line 394 contains "null" values. Simply adding an "If" check could avoid the error, but I think in this case eventually the code would have to be adjusted to output also stats for the goals not bound to a lifecycle phase.

@khmarbaise khmarbaise added the bug label Apr 17, 2018
asfgit pushed a commit to apache/plc4x that referenced this issue Apr 19, 2018
khmarbaise added a commit that referenced this issue Apr 19, 2018
 o added explicit output for goals called without lifecycle.
khmarbaise added a commit that referenced this issue Apr 21, 2018
 o added explicit output for goals called without lifecycle.
 o Fixed wrong test setup.
@khmarbaise khmarbaise added this to the 0.2.0 milestone Apr 21, 2018
@khmarbaise
Copy link
Owner

khmarbaise commented Apr 21, 2018

@chrisdutz Can you check if everything is now ok after fixing the issue? Thanks for reporting this...Will take some hours for 0.2.0 being available in Central...

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