db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r763748 - /db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/system/sttest/utils/Datatypes.java
Date Thu, 09 Apr 2009 17:48:45 GMT
Author: myrnavl
Date: Thu Apr  9 17:48:45 2009
New Revision: 763748

URL: http://svn.apache.org/viewvc?rev=763748&view=rev
Log:
DERBY-4148 - fixing NullPointerException in system.sttest
  backport revision 763743 from trunk.

Modified:
    db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/system/sttest/utils/Datatypes.java

Modified: db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/system/sttest/utils/Datatypes.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/system/sttest/utils/Datatypes.java?rev=763748&r1=763747&r2=763748&view=diff
==============================================================================
--- db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/system/sttest/utils/Datatypes.java
(original)
+++ db/derby/code/branches/10.5/java/testing/org/apache/derbyTesting/system/sttest/utils/Datatypes.java
Thu Apr  9 17:48:45 2009
@@ -609,8 +609,10 @@
 			if (rows < 0)
 				System.out.println("t" + thread_id + " update failed.");
 		}
-		streamReader.close();
-		streamIn.close();
+		if (streamReader != null)
+			streamReader.close();
+		if (streamIn !=null)
+			streamIn.close();
 		if (ps2 != null)
 			try {
 				ps2.close();
@@ -671,4 +673,4 @@
 		locked = true;
 		return (rows);
 	}
-}
\ No newline at end of file
+}



Mime
View raw message