You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by ka...@apache.org on 2011/10/10 12:05:19 UTC

svn commit: r1180858 - /db/derby/code/trunk/java/testing/org/apache/derbyTesting/system/nstest/NsTest.java

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 - ");