Skip to content

Commit 938a468

Browse files
committed
[app-builder] 业务数据深拷贝允许value存在null值
1 parent c36570c commit 938a468

File tree

1 file changed

+3
-2
lines changed
  • app-builder/plugins/aipp-plugin/src/main/java/modelengine/fit/jober/aipp/domains/business

1 file changed

+3
-2
lines changed

app-builder/plugins/aipp-plugin/src/main/java/modelengine/fit/jober/aipp/domains/business/RunContext.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,9 @@ public static RunContext from(CreateAppChatRequest request, OperationContext con
107107
*/
108108
public RunContext businessDeepClone() {
109109
return new RunContext(
110-
this.businessData.entrySet().stream().collect(Collectors.toMap(Map.Entry::getKey, Map.Entry::getValue)),
111-
this.getOperationContext());
110+
new HashMap<>(this.businessData),
111+
this.getOperationContext()
112+
);
112113
}
113114

114115
/**

0 commit comments

Comments
 (0)