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

(cherry picked from commit 10643f9)

Conflicts:
	changelog.html
  • Loading branch information
jglick authored and olivergondza committed Sep 17, 2013
1 parent d7e3702 commit 1b44e6c71a50f932a368552d3b3c8422c0342374
Showing with 3 additions and 0 deletions.
  1. +3 −0 maven-plugin/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 1b44e6c

Please sign in to comment.