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 and olamy committed Aug 23, 2024
1 parent d79caa0 commit fdebd58
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -1239,7 +1239,9 @@ public void execute() throws MojoExecutionException, CompilationFailureException
}
}

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 fdebd58

Please sign in to comment.