Skip to content

Commit

Permalink
[MCOMPILER-592] - IndexOutOfBoundsException when project.build.output…
Browse files Browse the repository at this point in the history
…Timestamp is empty (#244)
  • Loading branch information
thijsrijpert authored Aug 23, 2024
1 parent 6e3fc5d commit 5b24341
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1152,7 +1152,9 @@ public void execute() {
}
}

if (outputTimestamp != null && (outputTimestamp.length() > 1 || Character.isDigit(outputTimestamp.charAt(0)))) {
if (outputTimestamp != null
&& !outputTimestamp.isEmpty()
&& (outputTimestamp.length() > 1 || Character.isDigit(outputTimestamp.charAt(0)))) {
// if Reproducible Builds mode, apply workaround
patchJdkModuleVersion(compilerResult, sources);
}
Expand Down

0 comments on commit 5b24341

Please sign in to comment.