Skip to content

Commit

Permalink
catch npe thrown by maven resolver api
Browse files Browse the repository at this point in the history
  • Loading branch information
Jiwoo Lim authored and Jiwoo Lim committed Jul 31, 2024
1 parent 5d92183 commit c7aafd6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ private File resolveArtifactFile(org.eclipse.aether.artifact.Artifact aetherArti
throw new MojoExecutionException("Unable to resolve artifact: " + aetherArtifact.getGroupId() + ":"
+ aetherArtifact.getArtifactId() + ":" + aetherArtifact.getVersion());
}
} catch (ArtifactResolutionException e) {
} catch (ArtifactResolutionException | NullPointerException e) {
throw new MojoExecutionException("Unable to resolve artifact: " + aetherArtifact.getGroupId() + ":"
+ aetherArtifact.getArtifactId() + ":" + aetherArtifact.getVersion(), e);
}
Expand Down

0 comments on commit c7aafd6

Please sign in to comment.