db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From rhille...@apache.org
Subject svn commit: r901420 - /db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DDMWriter.java
Date Wed, 20 Jan 2010 22:58:11 GMT
Author: rhillegas
Date: Wed Jan 20 22:58:11 2010
New Revision: 901420

URL: http://svn.apache.org/viewvc?rev=901420&view=rev
Log:
DERBY-4491: Bracket an assertion with a SanityManager.DEBUG check.

Modified:
    db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DDMWriter.java

Modified: db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DDMWriter.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DDMWriter.java?rev=901420&r1=901419&r2=901420&view=diff
==============================================================================
--- db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DDMWriter.java (original)
+++ db/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DDMWriter.java Wed Jan 20 22:58:11
2010
@@ -1103,9 +1103,12 @@
 	protected void writeUDT( Object val, int index ) throws DRDAProtocolException
 	{
         // should not be called if val is null
-        if ( val == null )
-        {
-            SanityManager.THROWASSERT( "UDT is null" );
+		if (SanityManager.DEBUG)
+		{
+            if ( val == null )
+            {
+                SanityManager.THROWASSERT( "UDT is null" );
+            }
         }
 
         byte[] buffer = null;



Mime
View raw message