db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Daniel John Debrunner <...@apache.org>
Subject Possible NPE code bug in DRDAConnThread.writeSQLCINRD - any ideas??
Date Wed, 09 Jan 2008 17:47:12 GMT
In DRDAConnThread.writeSQLCINRD() at line 4129 we have:

     ResultSet rs = null;

     ...

     if (!stmt.needsToSendParamData)    <<< line 4129
	 rs = stmt.getResultSet();


then later at line 4137 we access rs regardless of its setting:

    ResultSetMetaData rsmeta = rs.getMetaData();

this will lead to an NPE if stmt.needsToSendParamData was true.

Any ideas on what is going on here? Should the test of 
needsToSendParamData be removed?

Dan.




Mime
View raw message