-
Notifications
You must be signed in to change notification settings - Fork 268
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 in DependencyUpdatesXmlRenderer.getVersionsBlocks with version ranges #323
Comments
DefaultArtifact::version is set to null in its constructor if the dependency specifies a range and there's no recommended version: private void selectVersionFromNewRangeIfAvailable()
{
if ( ( versionRange != null ) && ( versionRange.getRecommendedVersion() != null ) )
{
selectVersion( versionRange.getRecommendedVersion().toString() );
}
else
{
version = null;
baseVersion = null;
}
} |
andrzejj0
added a commit
to andrzejj0/versions-maven-plugin
that referenced
this issue
Aug 26, 2022
andrzejj0
added a commit
to andrzejj0/versions-maven-plugin
that referenced
this issue
Aug 26, 2022
slawekjaranowski
pushed a commit
that referenced
this issue
Aug 26, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
When there is a dependency with a version range (I know, bad practice) in the
dependencyManagement
the xml renderer throws a null pointer exception:Minimal test-pom (run
mvn site
on it):The text was updated successfully, but these errors were encountered: