Skip to content

Commit fdebd58

Browse files
thijsrijpertolamy
authored andcommitted
[MCOMPILER-592] - IndexOutOfBoundsException when project.build.outputTimestamp is empty (#244)
1 parent d79caa0 commit fdebd58

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java

+3-1
Original file line numberDiff line numberDiff line change
@@ -1239,7 +1239,9 @@ public void execute() throws MojoExecutionException, CompilationFailureException
12391239
}
12401240
}
12411241

1242-
if (outputTimestamp != null && (outputTimestamp.length() > 1 || Character.isDigit(outputTimestamp.charAt(0)))) {
1242+
if (outputTimestamp != null
1243+
&& !outputTimestamp.isEmpty()
1244+
&& (outputTimestamp.length() > 1 || Character.isDigit(outputTimestamp.charAt(0)))) {
12431245
// if Reproducible Builds mode, apply workaround
12441246
patchJdkModuleVersion(compilerResult, sources);
12451247
}

0 commit comments

Comments
 (0)