jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1843130 - /jmeter/trunk/src/core/org/apache/jmeter/engine/TreeCloner.java
Date Mon, 08 Oct 2018 11:43:37 GMT
Author: pmouawad
Date: Mon Oct  8 11:43:37 2018
New Revision: 1843130

URL: http://svn.apache.org/viewvc?rev=1843130&view=rev
Log:
Fix regression introduced by commit 
http://svn.apache.org/viewvc?rev=1843120&view=rev

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

Modified: jmeter/trunk/src/core/org/apache/jmeter/engine/TreeCloner.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/engine/TreeCloner.java?rev=1843130&r1=1843129&r2=1843130&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/engine/TreeCloner.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/engine/TreeCloner.java Mon Oct  8 11:43:37 2018
@@ -73,12 +73,13 @@ public class TreeCloner implements HashT
            // Don't clone NoThreadClone unless honourNoThreadClone == false
           && (!(honourNoThreadClone && (node instanceof NoThreadClone)))
         ) {
-            Object clonedNode = ((TestElement) node).clone();
-            newTree.add(objects, clonedNode);
+            Object newNode = ((TestElement) node).clone();
+            newTree.add(objects, newNode);
+            return newNode;
         } else {
             newTree.add(objects, node);
+            return node;
         }
-        return node;
     }
     
     /**



Mime
View raw message