Skip to content

Commit

Permalink
Merge pull request #1824 from jjiwooLim/catchNpe
Browse files Browse the repository at this point in the history
catch npe thrown by maven resolver api
  • Loading branch information
cherylking committed Jul 31, 2024
2 parents 6fca933 + c7aafd6 commit d8c90d8
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 d8c90d8

Please sign in to comment.