Skip to content

Commit

Permalink
- Fix Oracle IT Tests
Browse files Browse the repository at this point in the history
  • Loading branch information
pefernan committed Dec 5, 2023
1 parent 6ecf250 commit 2f5bc28
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,12 @@ public int hashCode(JsonNode x) throws HibernateException {
@Override
public JsonNode nullSafeGet(ResultSet rs, int position, SharedSessionContractImplementor session, Object owner)
throws HibernateException, SQLException {
final Blob json = rs.getBlob(position);
if (json.length() == 0) {
final Blob blob = rs.getBlob(position);
if (blob == null || blob.length() == 0) {
return null;
}
try {
return mapper.readTree(json.getBinaryStream());
return mapper.readTree(blob.getBinaryStream());
} catch (final Exception ex) {
throw new RuntimeException("Failed to convert String to JSON: " + ex.getMessage(), ex);
}
Expand Down

0 comments on commit 2f5bc28

Please sign in to comment.