jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject svn commit: r1514213 - /jmeter/trunk/src/core/org/apache/jmeter/testbeans/TestBeanHelper.java
Date Thu, 15 Aug 2013 09:14:13 GMT
Author: sebb
Date: Thu Aug 15 09:14:13 2013
New Revision: 1514213

URL: http://svn.apache.org/r1514213
Log:
Avoid possible NPE when reporting errors

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/testbeans/TestBeanHelper.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/testbeans/TestBeanHelper.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/testbeans/TestBeanHelper.java?rev=1514213&r1=1514212&r2=1514213&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/testbeans/TestBeanHelper.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/testbeans/TestBeanHelper.java Thu Aug 15 09:14:13
2013
@@ -175,8 +175,10 @@ public class TestBeanHelper {
         sb.append(method.getName());
         sb.append("(");
         for(Object o : params) {
-            sb.append(o.getClass().getSimpleName());
-            sb.append(' ');
+            if (o != null) {
+                sb.append(o.getClass().getSimpleName());
+                sb.append(' ');
+            }
             sb.append(o);
             sb.append(' ');
         }



Mime
View raw message