未验证 提交 703d7904 编写于 作者: Cheney71's avatar Cheney71 提交者: GitHub

[Bug] [Parameter Context] The preparameter OUT is null (#8315)

* fix:param context prop value is null
上级 b9406d35
...@@ -115,12 +115,15 @@ public abstract class AbstractParameters implements IParameters { ...@@ -115,12 +115,15 @@ public abstract class AbstractParameters implements IParameters {
return; return;
} }
Map<String, String> taskResult = getMapByString(result); Map<String, String> taskResult = getMapByString(result);
if (taskResult == null || taskResult.size() == 0) { if (taskResult.size() == 0) {
return; return;
} }
for (Property info : outProperty) { for (Property info : outProperty) {
info.setValue(taskResult.get(info.getProp())); String propValue = taskResult.get(info.getProp());
varPool.add(info); if (StringUtils.isNotEmpty(propValue)) {
info.setValue(propValue);
varPool.add(info);
}
} }
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册