Skip to content

Commit

Permalink
HHH-18961 JtaIsolationDelegate, obtaining connection : NPE when SQLEx…
Browse files Browse the repository at this point in the history
…ceptionConversionDelegate#convert returns null
dreab8 committed Jan 28, 2025

Verified

This commit was signed with the committer’s verified signature.
mattgodbolt Matt Godbolt
1 parent c9d4478 commit f026405
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -200,7 +200,11 @@ private <T> T doTheWork(WorkExecutorVisitable<T> work) {
}
}
catch (SQLException e) {
throw sqlExceptionConverter().apply( e, "unable to obtain isolated JDBC connection" );
final JDBCException jdbcException = sqlExceptionConverter().apply( e, "unable to obtain isolated JDBC connection" );
if ( jdbcException == null ) {
throw new HibernateException( "Unable to obtain isolated JDBC connection", e );
}
throw jdbcException;
}
}

0 comments on commit f026405

Please sign in to comment.