This is an automated email from the ASF dual-hosted git repository.

hansva pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/hop.git


The following commit(s) were added to refs/heads/master by this push:
     new bd5952d2f8 transform SwitchCaseMeta. when new,shuld use input 
parameter's  caseTargets
     new 3c69127768 Merge pull request #2810 from shenyun/bug_fix
bd5952d2f8 is described below

commit bd5952d2f81afec7f8022aa99bb812626fd1dbd3
Author: shenyun <[email protected]>
AuthorDate: Thu Apr 6 10:47:47 2023 +0800

    transform SwitchCaseMeta. when new,shuld use input parameter's  caseTargets
---
 .../org/apache/hop/pipeline/transforms/switchcase/SwitchCaseMeta.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/plugins/transforms/switchcase/src/main/java/org/apache/hop/pipeline/transforms/switchcase/SwitchCaseMeta.java
 
b/plugins/transforms/switchcase/src/main/java/org/apache/hop/pipeline/transforms/switchcase/SwitchCaseMeta.java
index f2de559c16..a5877f5b72 100644
--- 
a/plugins/transforms/switchcase/src/main/java/org/apache/hop/pipeline/transforms/switchcase/SwitchCaseMeta.java
+++ 
b/plugins/transforms/switchcase/src/main/java/org/apache/hop/pipeline/transforms/switchcase/SwitchCaseMeta.java
@@ -119,7 +119,7 @@ public class SwitchCaseMeta extends 
BaseTransformMeta<SwitchCase, SwitchCaseData
     this.caseValueGroup = m.caseValueGroup;
     this.defaultTargetTransformName = m.defaultTargetTransformName;
     this.usingContains = m.usingContains;
-    for (SwitchCaseTarget target : this.caseTargets) {
+    for (SwitchCaseTarget target : m.caseTargets) {
       this.caseTargets.add(new SwitchCaseTarget(target));
     }
   }

Reply via email to