Skip to content

Commit

Permalink
Compatibility with nexus 3.38 - null pointer exception when the class…
Browse files Browse the repository at this point in the history
…ifier is not set

* nexus 3.38 requires the classifier to be set (at least empty) otherwise it is throwing a null pointer exception
  • Loading branch information
kugacz committed May 17, 2022
1 parent 1c54066 commit 63fd22d
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,10 @@ public List<RundeckXO> version(
if (!isBlank(artifactId)) {
searchRequestBuilder.searchFilter("attributes.maven2.artifactId", artifactId);
}
if (!isBlank(classifier)) {
searchRequestBuilder.searchFilter("assets.attributes.maven2.classifier", classifier);
}

classifier = !isBlank(classifier) ? classifier : "";
searchRequestBuilder.searchFilter("assets.attributes.maven2.classifier", classifier);

if (!isBlank(extension)) {
searchRequestBuilder.searchFilter("assets.attributes.maven2.extension", extension);
}
Expand Down

0 comments on commit 63fd22d

Please sign in to comment.