Author: fschumacher
Date: Mon Feb 12 18:28:26 2018
New Revision: 1824049

URL: http://svn.apache.org/viewvc?rev=1824049&view=rev
Log:
Don't use isEmpty when comparing size to greater than one

Not really part of #356 on Github. Follow up to r1824035

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java

Modified: 
jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java
URL: 
http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java?rev=1824049&r1=1824048&r2=1824049&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java 
(original)
+++ jmeter/trunk/src/core/org/apache/jmeter/engine/util/CompoundVariable.java 
Mon Feb 12 18:28:26 2018
@@ -179,7 +179,7 @@ public class CompoundVariable implements
         }
 
         compiledComponents = functionParser.compileString(parameters);
-        if (!compiledComponents.isEmpty() || !(compiledComponents.get(0) 
instanceof String)) {
+        if (compiledComponents.size() > 1 || !(compiledComponents.get(0) 
instanceof String)) {
             hasFunction = true;
         }
         permanentResults = null; // To be calculated and cached on first 
execution


Reply via email to