Skip to content

Commit 577638a

Browse files
committed
Initialize jobParametersConverter in JobOperatorFactoryBean
1 parent 16bc8ac commit 577638a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

spring-batch-core/src/main/java/org/springframework/batch/core/launch/support/JobOperatorFactoryBean.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919

2020
import org.springframework.aop.framework.ProxyFactory;
2121
import org.springframework.batch.core.configuration.JobRegistry;
22+
import org.springframework.batch.core.converter.DefaultJobParametersConverter;
2223
import org.springframework.batch.core.converter.JobParametersConverter;
2324
import org.springframework.batch.core.explore.JobExplorer;
2425
import org.springframework.batch.core.launch.JobLauncher;
@@ -62,7 +63,7 @@ public class JobOperatorFactoryBean implements FactoryBean<JobOperator>, Initial
6263

6364
private JobExplorer jobExplorer;
6465

65-
private JobParametersConverter jobParametersConverter;
66+
private JobParametersConverter jobParametersConverter = new DefaultJobParametersConverter();
6667

6768
private ProxyFactory proxyFactory = new ProxyFactory();
6869

0 commit comments

Comments
 (0)