Skip to content

Commit 3be6bad

Browse files
committed
Merge pull request #140 from bsodzik/master
Added protection from NullPointerException when dotGitDirectory is wrong.
2 parents 77679ab + 0079f9c commit 3be6bad

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/pl/project13/maven/git/JGitProvider.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -216,7 +216,9 @@ protected String getTags() throws MojoExecutionException {
216216

217217
@Override
218218
protected void finalCleanUp() {
219-
revWalk.dispose();
219+
if (revWalk != null) {
220+
revWalk.dispose();
221+
}
220222
}
221223

222224

0 commit comments

Comments
 (0)