servicemix-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gno...@apache.org
Subject svn commit: r411734 - /incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/jdbc/adapter/OracleJDBCAdapter.java
Date Mon, 05 Jun 2006 10:34:38 GMT
Author: gnodet
Date: Mon Jun  5 03:34:38 2006
New Revision: 411734

URL: http://svn.apache.org/viewvc?rev=411734&view=rev
Log:
Avoid NPE

Modified:
    incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/jdbc/adapter/OracleJDBCAdapter.java

Modified: incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/jdbc/adapter/OracleJDBCAdapter.java
URL: http://svn.apache.org/viewvc/incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/jdbc/adapter/OracleJDBCAdapter.java?rev=411734&r1=411733&r2=411734&view=diff
==============================================================================
--- incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/jdbc/adapter/OracleJDBCAdapter.java
(original)
+++ incubator/servicemix/trunk/servicemix-services/src/main/java/org/apache/servicemix/jdbc/adapter/OracleJDBCAdapter.java
Mon Jun  5 03:34:38 2006
@@ -44,6 +44,9 @@
     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());
     }
 }



Mime
View raw message