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
  • Loading branch information
thijsrijpert committed May 31, 2024
1 parent d79caa0 commit febe1b2
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 febe1b2

Please sign in to comment.