db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From t.@apache.org
Subject svn commit: r725410 - in /db/torque/village/trunk: src/java/com/workingdogs/village/Value.java xdocs/changes.xml
Date Wed, 10 Dec 2008 20:15:20 GMT
Author: tv
Date: Wed Dec 10 12:15:19 2008
New Revision: 725410

URL: http://svn.apache.org/viewvc?rev=725410&view=rev
Log:
Fixed the infamous NPE when Oracle returns null for a blob.

Modified:
    db/torque/village/trunk/src/java/com/workingdogs/village/Value.java
    db/torque/village/trunk/xdocs/changes.xml

Modified: db/torque/village/trunk/src/java/com/workingdogs/village/Value.java
URL: http://svn.apache.org/viewvc/db/torque/village/trunk/src/java/com/workingdogs/village/Value.java?rev=725410&r1=725409&r2=725410&view=diff
==============================================================================
--- db/torque/village/trunk/src/java/com/workingdogs/village/Value.java (original)
+++ db/torque/village/trunk/src/java/com/workingdogs/village/Value.java Wed Dec 10 12:15:19
2008
@@ -148,9 +148,8 @@
             break;
 
         case Types.BLOB:
-
             Blob blob = rs.getBlob(columnNumber);
-            valueObject = blob.getBytes(1, (int) blob.length());
+            valueObject = blob != null ? blob.getBytes(1, (int) blob.length()) : null;
 
             break;
 

Modified: db/torque/village/trunk/xdocs/changes.xml
URL: http://svn.apache.org/viewvc/db/torque/village/trunk/xdocs/changes.xml?rev=725410&r1=725409&r2=725410&view=diff
==============================================================================
--- db/torque/village/trunk/xdocs/changes.xml (original)
+++ db/torque/village/trunk/xdocs/changes.xml Wed Dec 10 12:15:19 2008
@@ -24,7 +24,12 @@
   </properties>
 
   <body>
-  <release version="3.3" date="in SVN">
+  <release version="3.3.1-SNAPSHOT" date="in SVN">
+    <action type="fix" dev="tv">
+      Fixed the infamous NPE when Oracle returns null for a blob.
+    </action>
+  </release>
+  <release version="3.3" date="2008-02-29">
     <action type="update" dev="seade">
       Refactored unit tests to use JUnit.  Added test case for TORQUE-8.
     </action>



---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message