Skip to content

Commit 303906c

Browse files
committed
Maven sets default empty to null so make sure its never null
1 parent 82fe04a commit 303906c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/main/java/com/hazendaz/maven/makeself/MakeselfMojo.java

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -591,6 +591,11 @@ public class MakeselfMojo extends AbstractMojo {
591591

592592
@Override
593593
public void execute() throws MojoExecutionException, MojoFailureException {
594+
// Ensure gitPath is never null
595+
if (gitPath == null) {
596+
gitPath = "";
597+
}
598+
594599
// Check if plugin run should be skipped
595600
if (this.skip) {
596601
getLog().info("Makeself is skipped");

0 commit comments

Comments
 (0)