Skip to content

Commit 5b24341

Browse files
authored
[MCOMPILER-592] - IndexOutOfBoundsException when project.build.outputTimestamp is empty (#244)
1 parent 6e3fc5d commit 5b24341

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1152,7 +1152,9 @@ public void execute() {
11521152
}
11531153
}
11541154

1155-
if (outputTimestamp != null && (outputTimestamp.length() > 1 || Character.isDigit(outputTimestamp.charAt(0)))) {
1155+
if (outputTimestamp != null
1156+
&& !outputTimestamp.isEmpty()
1157+
&& (outputTimestamp.length() > 1 || Character.isDigit(outputTimestamp.charAt(0)))) {
11561158
// if Reproducible Builds mode, apply workaround
11571159
patchJdkModuleVersion(compilerResult, sources);
11581160
}

0 commit comments

Comments
 (0)