trafodion-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sure...@apache.org
Subject [1/2] trafodion git commit: nullpointer error where server return without value
Date Fri, 02 Feb 2018 04:27:13 GMT
Repository: trafodion
Updated Branches:
  refs/heads/master 6e8ac301d -> 4ca0b606a


nullpointer error where server return without value


Project: http://git-wip-us.apache.org/repos/asf/trafodion/repo
Commit: http://git-wip-us.apache.org/repos/asf/trafodion/commit/5e8e9c08
Tree: http://git-wip-us.apache.org/repos/asf/trafodion/tree/5e8e9c08
Diff: http://git-wip-us.apache.org/repos/asf/trafodion/diff/5e8e9c08

Branch: refs/heads/master
Commit: 5e8e9c08a99d72773eb1fbe6c1ab5c70cf31ddb2
Parents: 4ef8055
Author: Kenny <xiaozhong.wang@esgyn.cn>
Authored: Tue Jan 30 05:02:45 2018 +0000
Committer: Kenny <xiaozhong.wang@esgyn.cn>
Committed: Tue Jan 30 05:02:45 2018 +0000

----------------------------------------------------------------------
 .../main/java/org/trafodion/jdbc/t4/InterfaceStatement.java    | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/trafodion/blob/5e8e9c08/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/InterfaceStatement.java
----------------------------------------------------------------------
diff --git a/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/InterfaceStatement.java
b/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/InterfaceStatement.java
index a2c199e..ff5179e 100644
--- a/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/InterfaceStatement.java
+++ b/core/conn/jdbcT4/src/main/java/org/trafodion/jdbc/t4/InterfaceStatement.java
@@ -1447,7 +1447,11 @@ class InterfaceStatement {
 				TrafT4CallableStatement cstmt = (TrafT4CallableStatement) stmt;
 				Object[] outputValueArray;
 				if(er.returnCode == TRANSPORT.NO_DATA_FOUND) { //this should really only happen with
LAST0 specified
-					outputValueArray = new Object[cstmt.outputDesc_.length];
+					if (null != cstmt.outputDesc_) {
+					    outputValueArray = new Object[cstmt.outputDesc_.length];
+					} else {
+					    outputValueArray = null;
+					}
 				}
 				else {
 					outputValueArray = InterfaceResultSet.getExecute2Outputs(cstmt.connection_, cstmt.outputDesc_,



Mime
View raw message