jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1775165 - /jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
Date Mon, 19 Dec 2016 19:56:38 GMT
Author: pmouawad
Date: Mon Dec 19 19:56:37 2016
New Revision: 1775165

URL: http://svn.apache.org/viewvc?rev=1775165&view=rev
Log:
Fix NPE

Modified:
    jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java

Modified: jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java?rev=1775165&r1=1775164&r2=1775165&view=diff
==============================================================================
--- jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
(original)
+++ jmeter/trunk/src/protocol/jdbc/org/apache/jmeter/protocol/jdbc/AbstractJDBCTestElement.java
Mon Dec 19 19:56:37 2016
@@ -591,7 +591,7 @@ public abstract class AbstractJDBCTestEl
                 s.close();
             }
         } catch (SQLException e) {
-            log.warn("Error closing Statement " + s.toString(), e);
+            log.warn("Error closing Statement " + (s != null ? s.toString() : "null"), e);
         }
     }
 



Mime
View raw message