Skip to content

Commit

Permalink
Merge pull request #19 from kugacz/master
Browse files Browse the repository at this point in the history
Compatibility with nexus 3.38 - null pointer exception when the class…
  • Loading branch information
chenlingmin authored May 18, 2022
2 parents 1c54066 + 63fd22d commit 026777a
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 026777a

Please sign in to comment.