Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

org.springframework.batch.core.JobParameter.toString may return null [BATCH-2772] #834

Open
spring-issuemaster opened this issue Nov 13, 2018 · 0 comments

Comments

@spring-issuemaster
Copy link
Collaborator

@spring-issuemaster spring-issuemaster commented Nov 13, 2018

Dmitry Smeliansky opened BATCH-2772 and commented

public String toString() { public String toString() { return parameter == null ? null : (parameterType == ParameterType.DATE ? "" + ((Date) parameter).getTime() : parameter.toString()); }

This behavior causes NPE in the JopParameters.toProperties method

java.lang.NullPointerException at java.util.Hashtable.put(Hashtable.java:459) at org.springframework.batch.core.JobParameters.toProperties(JobParameters.java:219) 

Affects: 3.0.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked pull requests

Successfully merging a pull request may close this issue.

None yet
1 participant
You can’t perform that action at this time.