Skip to content

Commit

Permalink
SAK-44358 - make sure arg0 isn't null before checking for isRecoverin…
Browse files Browse the repository at this point in the history
  • Loading branch information
maurercw authored Sep 28, 2020
1 parent 93af84a commit 87763ee
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void init() {
public void execute(JobExecutionContext arg0) throws JobExecutionException {
//this will stop the job if there is already another instance running
// or if this is an auto-recover restart attempt
if (!jobIsRunning.compareAndSet(false, true) || arg0.isRecovering()){
if (!jobIsRunning.compareAndSet(false, true) || (arg0 != null && arg0.isRecovering())){
log.warn("Stopping job since this job is/was already running");
return;
}
Expand Down

0 comments on commit 87763ee

Please sign in to comment.