HHH-13848 - Fix for potential NullPointerException

The callers of the convert() method in ResourceRegistryStandardImpl expect an exception which is then thrown. This me produce NullPointerException, which has been fixed in this commit.
This commit is contained in:
The Geeky Asian 2020-02-07 02:55:30 +04:00 committed by Andrea Boriero
parent 544dbbf762
commit 971d0f1fc5
1 changed files with 1 additions and 2 deletions

View File

@ -245,8 +245,7 @@ public final class ResourceRegistryStandardImpl implements ResourceRegistry {
}
private JDBCException convert(SQLException e, String s) {
// todo : implement
return null;
return new JDBCException(s, e);
}
@Override