File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
spring-batch-core/src/main/java/org/springframework/batch/core/configuration/support Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,11 +65,11 @@ public void unregisterStepsFromJob(String jobName) {
65
65
public Step getStep (String jobName , String stepName ) throws NoSuchJobException {
66
66
Assert .notNull (jobName , "The job name cannot be null." );
67
67
Assert .notNull (stepName , "The step name cannot be null." );
68
- if (!map .containsKey (jobName )) {
68
+ final Map <String , Step > jobSteps = map .get (jobName );
69
+ if (jobSteps == null ) {
69
70
throw new NoSuchJobException ("No job configuration with the name [" + jobName + "] was registered" );
70
71
}
71
72
else {
72
- final Map <String , Step > jobSteps = map .get (jobName );
73
73
if (jobSteps .containsKey (stepName )) {
74
74
return jobSteps .get (stepName );
75
75
}
You can’t perform that action at this time.
0 commit comments