db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kahat...@apache.org
Subject svn commit: r1180858 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/nstest/NsTest.java
Date Mon, 10 Oct 2011 10:05:19 GMT
Author: kahatlen
Date: Mon Oct 10 10:05:19 2011
New Revision: 1180858

URL: http://svn.apache.org/viewvc?rev=1180858&view=rev
Log:
DERBY-5452: Possible NPE in NsTest.printException()

Modified:
    db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/nstest/NsTest.java

Modified: db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/nstest/NsTest.java
URL: http://svn.apache.org/viewvc/db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/nstest/NsTest.java?rev=1180858&r1=1180857&r2=1180858&view=diff
==============================================================================
--- db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/nstest/NsTest.java (original)
+++ db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/nstest/NsTest.java Mon
Oct 10 10:05:19 2011
@@ -606,7 +606,7 @@ public class NsTest extends Thread {
 						+ " SQLSTATE: " + m);
 			}
 		}
-		if (e.getMessage().equals(null)) {
+		if (e.getMessage() == null) {
 			System.out.println("NULL error message detected");
 			System.out.println("Here is the NULL exection - " + e.toString());
 			System.out.println("Stack trace of the NULL exception - ");



Mime
View raw message