Skip to content
Permalink
Browse files
[FIXED JENKINS-18441] NPE in MavenFingerprinter.getArtifactRepository…
…Maven21.

Originally-Committed-As: 10643f9cf61e2eee1a7bf8b3394b3f6cb175450a
  • Loading branch information
jglick committed Jul 12, 2013
1 parent 39a932a commit e77a80550fc58115e41126350c1effa4e6f031a9
Showing with 3 additions and 0 deletions.
  1. +3 −0 src/main/java/hudson/maven/reporters/MavenFingerprinter.java
@@ -180,6 +180,9 @@ private ArtifactRepository getArtifactRepositoryMaven21(MavenProject pom) {
// this maven 2 object via reflection
Method method = MavenProject.class.getMethod("getProjectBuilderConfiguration");
projectBuilderConfiguration = (ProjectBuilderConfiguration) method.invoke(pom);
if (projectBuilderConfiguration == null) {
return null;
}
return projectBuilderConfiguration.getLocalRepository();
} catch (Exception e) {
LOGGER.log(Level.WARNING, "Could not retrieve BuilderConfigration", e);

0 comments on commit e77a805

Please sign in to comment.