db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kmars...@apache.org
Subject svn commit: r179927 - /incubator/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
Date Sat, 04 Jun 2005 03:13:36 GMT
Author: kmarsden
Date: Fri Jun  3 20:13:35 2005
New Revision: 179927

URL: http://svn.apache.org/viewcvs?rev=179927&view=rev
Log:
DERBY-128 Network Server Gives NPE if SQLException has null SQLState

Removed dereferencing of sqlstate which was causing the NPE
			Contributed by Dyre Tjeldvoll


Modified:
    incubator/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java

Modified: incubator/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java
URL: http://svn.apache.org/viewcvs/incubator/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java?rev=179927&r1=179926&r2=179927&view=diff
==============================================================================
--- incubator/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java (original)
+++ incubator/derby/code/trunk/java/drda/org/apache/derby/impl/drda/DRDAConnThread.java Fri
Jun  3 20:13:35 2005
@@ -5141,7 +5141,7 @@
 					// arguments are variable part of a message
 					Object[] args = ce.getArguments();
 					for (int i = 0; args != null &&  i < args.length; i++)
-						sqlerrmc += args[i].toString() + separator;
+						sqlerrmc += args[i] + separator;
 					
 					// Severe exceptions need to be logged in the error log
 					// also log location and non-localized message will be



Mime
View raw message