Skip to content

fix: crash when profile with no build is processed #96

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

Merged
merged 2 commits into from
May 4, 2025

Conversation

smaarn
Copy link
Contributor

@smaarn smaarn commented May 3, 2025

Basically whenever trying to use lockBuildwith a profile with no build attached it would be ... crashing with an NPE.

[ERROR] Failed to execute goal se.vandmo:dependency-lock-maven-plugin:0.0.5734cd9bd748d0121eda3d28d4f428a246501ee0:lock (default-cli) on project parent: Execution default-cli of goal se.vandmo:dependency-lock-maven-plugin:0.0.5734cd9bd748d0121eda3d28d4f428a246501ee0:lock failed: Cannot invoke "org.apache.maven.model.BuildBase.getPluginManagement()" because the return value of "org.apache.maven.model.Profile.getBuild()" is null -> [Help 1]
[E

@smaarn smaarn mentioned this pull request May 3, 2025
@vandmo vandmo merged commit 743b9be into vandmo:master May 4, 2025
2 checks passed
@smaarn smaarn deleted the fix/npe-on-profile-loading branch May 24, 2025 19:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants