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

Do not throw NPE for job instances without executions #3798

Closed

Conversation

hpoettker
Copy link
Contributor

When working with Spring Cloud Dataflow, it does occasionally happen that the database contains batch job instances without any batch job executions. When launching an execution for such an instance, this currently leads to a NullPointerException.

See for example:

Spring Batch should handle such a situation more gracefully and throw an exception with a hint to the problem.

@fmbenhassine
Copy link
Contributor

Feature: Do not throw NPE for job instances without executions

If Spring Batch fails with a NPE, I consider this as a bug and not a feature. I edited the title accordingly.

@fmbenhassine fmbenhassine changed the title Feature: Do not throw NPE for job instances without executions Do not throw NPE for job instances without executions Nov 9, 2020
@fmbenhassine fmbenhassine added has: backports Legacy label from JIRA. Superseded by "for: backport-to-x.x.x" in: core pr-for: bug labels Nov 9, 2020
@fmbenhassine fmbenhassine added this to the 5.0.0-M1 milestone Nov 9, 2020
@fmbenhassine
Copy link
Contributor

LGTM, rebased and merged as b6c3fb6. Thank you for your contribution!

@hpoettker hpoettker deleted the feature/check-bji-wo-bje branch November 26, 2020 17:20
@fmbenhassine fmbenhassine modified the milestones: 5.0.0-M1, 4.3.1 Jan 21, 2021
@fmbenhassine fmbenhassine added for: backport-to-4.2.x Issues that will be back-ported to the 4.2.x line and removed has: backports Legacy label from JIRA. Superseded by "for: backport-to-x.x.x" labels Jan 21, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
for: backport-to-4.2.x Issues that will be back-ported to the 4.2.x line in: core pr-for: bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants