Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[FIXED JENKINS-18441] NPE in MavenFingerprinter.getArtifactRepository…
…Maven21.

Originally-Committed-As: 10643f9cf61e2eee1a7bf8b3394b3f6cb175450a
  • Loading branch information
jglick committed Jul 12, 2013
1 parent 39a932a commit e77a805
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/hudson/maven/reporters/MavenFingerprinter.java
Expand Up @@ -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);
Expand Down

0 comments on commit e77a805

Please sign in to comment.