diff --git a/spring-batch-execution/src/main/java/org/springframework/batch/execution/step/simple/SimpleStepExecutor.java b/spring-batch-execution/src/main/java/org/springframework/batch/execution/step/simple/SimpleStepExecutor.java index 791d3d0bc..4a8ba3323 100644 --- a/spring-batch-execution/src/main/java/org/springframework/batch/execution/step/simple/SimpleStepExecutor.java +++ b/spring-batch-execution/src/main/java/org/springframework/batch/execution/step/simple/SimpleStepExecutor.java @@ -163,8 +163,8 @@ public class SimpleStepExecutor { public void execute(final StepExecution stepExecution) throws BatchCriticalException, StepInterruptedException { final StepInstance stepInstance = stepExecution.getStep(); - boolean isRestart = stepInstance.getStepExecutionCount() > 0 ? true : false; Assert.notNull(stepInstance); + boolean isRestart = stepInstance.getStepExecutionCount() > 0 ? true : false; ExitStatus status = ExitStatus.FAILED;