From 94e2404f4deedd3d7092ec821b4d31559a798818 Mon Sep 17 00:00:00 2001 From: S L Date: Wed, 8 Apr 2015 16:19:47 +0200 Subject: [PATCH] Fix for possible NPE as discussed in https://github.com/ktoso/maven-git-commit-id-plugin/issues/153 --- src/main/java/pl/project13/maven/git/GitCommitIdMojo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/pl/project13/maven/git/GitCommitIdMojo.java b/src/main/java/pl/project13/maven/git/GitCommitIdMojo.java index 35c3ed08..1e02d1be 100644 --- a/src/main/java/pl/project13/maven/git/GitCommitIdMojo.java +++ b/src/main/java/pl/project13/maven/git/GitCommitIdMojo.java @@ -82,7 +82,7 @@ public class GitCommitIdMojo extends AbstractMojo { /** * The maven project. * - * @parameter property="project" + * @parameter property="project" default-value="${project}" * @readonly */ @SuppressWarnings("UnusedDeclaration") @@ -91,7 +91,7 @@ public class GitCommitIdMojo extends AbstractMojo { /** * Contains the full list of projects in the reactor. * - * @parameter property="reactorProjects" + * @parameter property="reactorProjects" default-value="${reactorProjects}" * @readonly */ @SuppressWarnings("UnusedDeclaration")