Return-Path: Delivered-To: apmail-db-torque-dev-archive@www.apache.org Received: (qmail 1315 invoked from network); 10 Dec 2008 20:15:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 10 Dec 2008 20:15:43 -0000 Received: (qmail 44437 invoked by uid 500); 10 Dec 2008 20:15:56 -0000 Delivered-To: apmail-db-torque-dev-archive@db.apache.org Received: (qmail 44416 invoked by uid 500); 10 Dec 2008 20:15:56 -0000 Mailing-List: contact torque-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Apache Torque Developers List" Reply-To: "Apache Torque Developers List" Delivered-To: mailing list torque-dev@db.apache.org Received: (qmail 44405 invoked by uid 500); 10 Dec 2008 20:15:56 -0000 Received: (qmail 44402 invoked by uid 99); 10 Dec 2008 20:15:56 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2008 12:15:56 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 10 Dec 2008 20:15:41 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id D358E23888E6; Wed, 10 Dec 2008 12:15:20 -0800 (PST) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: torque-commits@db.apache.org From: tv@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20081210201520.D358E23888E6@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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 @@ - + + + Fixed the infamous NPE when Oracle returns null for a blob. + + + Refactored unit tests to use JUnit. Added test case for TORQUE-8. --------------------------------------------------------------------- To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org For additional commands, e-mail: torque-dev-help@db.apache.org