Skip to content

Conversation

@quaff
Copy link
Contributor

@quaff quaff commented Oct 22, 2025

The result set may be empty then unbox lastJobExecutionId will cause NPE.

The result set may be empty then unbox `lastJobExecutionId` will cause NPE.

Signed-off-by: Yanming Zhou <zhouyanming@gmail.com>
@Transactional
@Test
void testGetLastJobExecution() {
assertEquals(null, jobExecutionDao.getLastJobExecution(jobInstance));
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@fmbenhassine It's necessary to enable JdbcJobDaoTests.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

image

@fmbenhassine
Copy link
Contributor

LGTM 👍 Merged as ed383e2. Thanks!

@fmbenhassine fmbenhassine added this to the 6.0.0-RC1 milestone Oct 22, 2025
@fmbenhassine fmbenhassine changed the title Fix potential NPE Fix potential NPE in JdbcJobExecutionDao Oct 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants