Skip to content

Commit 703d790

Browse files
authored
[Bug] [Parameter Context] The preparameter OUT is null (#8315)
* fix:param context prop value is null
1 parent b9406d3 commit 703d790

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

dolphinscheduler-spi/src/main/java/org/apache/dolphinscheduler/spi/task/AbstractParameters.java

+6-3
Original file line numberDiff line numberDiff line change
@@ -115,12 +115,15 @@ public void dealOutParam(String result) {
115115
return;
116116
}
117117
Map<String, String> taskResult = getMapByString(result);
118-
if (taskResult == null || taskResult.size() == 0) {
118+
if (taskResult.size() == 0) {
119119
return;
120120
}
121121
for (Property info : outProperty) {
122-
info.setValue(taskResult.get(info.getProp()));
123-
varPool.add(info);
122+
String propValue = taskResult.get(info.getProp());
123+
if (StringUtils.isNotEmpty(propValue)) {
124+
info.setValue(propValue);
125+
varPool.add(info);
126+
}
124127
}
125128
}
126129

0 commit comments

Comments
 (0)