diff --git a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/parser/NodeCloner.java b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/parser/NodeCloner.java index fd187117256d..17bd8441aff5 100644 --- a/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/parser/NodeCloner.java +++ b/compiler/ballerina-lang/src/main/java/org/wso2/ballerinalang/compiler/parser/NodeCloner.java @@ -696,7 +696,7 @@ public void visit(BLangMatchStatement source) { source.cloneRef = clone; clone.setExpression(clone(source.getExpression())); clone.matchClauses = cloneList(source.matchClauses); - clone.onFailClause = source.onFailClause; + clone.onFailClause = clone(source.onFailClause); } @Override