Skip to content

Commit

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

(cherry picked from commit 10643f9)

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

Please sign in to comment.