Skip to content

Commit

Permalink
lastBuildFileChange adding some null checks
Browse files Browse the repository at this point in the history
Signed-off-by: Arun Venmany <[email protected]>
  • Loading branch information
arunvenmany-ibm committed Jan 17, 2025
1 parent b21d776 commit ace8f8a
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -3627,7 +3627,7 @@ private boolean processUpstreamJavaCompilation(List<ProjectModule> upstreamProje
boolean compileDownstreamSrc = false;
boolean compileDownstreamTest = false;

boolean pastBuildFileWaitPeriod = System
boolean pastBuildFileWaitPeriod = lastBuildFileChange.get(project.getBuildFile()) != null && System
.currentTimeMillis() > lastBuildFileChange.get(project.getBuildFile()) + compileWaitMillis;
if (!pastBuildFileWaitPeriod) {
continue;
Expand Down Expand Up @@ -3885,7 +3885,7 @@ private void processJavaCompilation(File outputDirectory, File testOutputDirecto
// process java source files if no changes detected after the compile wait time
boolean processSources = System.currentTimeMillis() > lastJavaSourceChange + compileWaitMillis;
boolean processTests = System.currentTimeMillis() > lastJavaTestChange + compileWaitMillis;
boolean pastBuildFileWaitPeriod = System.currentTimeMillis() > lastBuildFileChange.get(buildFile) + compileWaitMillis;
boolean pastBuildFileWaitPeriod = lastBuildFileChange.get(buildFile) != null && System.currentTimeMillis() > lastBuildFileChange.get(buildFile) + compileWaitMillis;
if (processSources && pastBuildFileWaitPeriod) {
// Count the messages before the compile.
int numApplicationUpdatedMessages = 0;
Expand Down

0 comments on commit ace8f8a

Please sign in to comment.