List:Commits« Previous MessageNext Message »
From:mmatthews Date:April 3 2006 6:24pm
Subject:Connector/J commit: r5126 - branches/branch_5_0/connector-j/src/com/mysql/jdbc
View as plain text  
Modified:
   branches/branch_5_0/connector-j/src/com/mysql/jdbc/CallableStatement.java
Log:
Missed a merge that caused an NPE when a procedure with no parameters was called.

Modified: branches/branch_5_0/connector-j/src/com/mysql/jdbc/CallableStatement.java
===================================================================
--- branches/branch_5_0/connector-j/src/com/mysql/jdbc/CallableStatement.java	2006-04-03 18:23:06 UTC (rev 5125)
+++ branches/branch_5_0/connector-j/src/com/mysql/jdbc/CallableStatement.java	2006-04-03 18:24:43 UTC (rev 5126)
@@ -232,6 +232,10 @@
 		}
 
 		public int getParameterCount() throws SQLException {
+			if (this.parameterList == null) {
+				return 0;
+			}
+			
 			return this.parameterList.size();
 		}
 

Thread
Connector/J commit: r5126 - branches/branch_5_0/connector-j/src/com/mysql/jdbcmmatthews3 Apr