mirror of https://github.com/apache/activemq.git
avoid NullPointerException
git-svn-id: https://svn.apache.org/repos/asf/incubator/activemq/trunk@411728 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
parent
61fcd4cfd1
commit
f533b42f31
|
@ -52,6 +52,9 @@ public class OracleJDBCAdapter extends DefaultJDBCAdapter {
|
|||
protected byte[] getBinaryData(ResultSet rs, int index) throws SQLException {
|
||||
// Get as a BLOB
|
||||
Blob aBlob = rs.getBlob(index);
|
||||
if (aBlob == null) {
|
||||
return null;
|
||||
}
|
||||
return aBlob.getBytes(1, (int) aBlob.length());
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue