mirror of
https://gitee.com/dromara/RuoYi-Vue-Plus.git
synced 2026-09-18 09:35:29 +08:00
fix: 修复CompleteTaskDTO中getVariables()中variables == null 时的返回值问题
Signed-off-by: Tyler Ge <tylerge99@gmail.com>
This commit is contained in:
parent
5ea8d8c950
commit
3448066acb
@ -67,7 +67,8 @@ public class CompleteTaskDTO implements Serializable {
|
|||||||
|
|
||||||
public Map<String, Object> getVariables() {
|
public Map<String, Object> getVariables() {
|
||||||
if (variables == null) {
|
if (variables == null) {
|
||||||
return new HashMap<>(16);
|
variables = new HashMap<>(16);
|
||||||
|
return variables;
|
||||||
}
|
}
|
||||||
variables.entrySet().removeIf(entry -> Objects.isNull(entry.getValue()));
|
variables.entrySet().removeIf(entry -> Objects.isNull(entry.getValue()));
|
||||||
return variables;
|
return variables;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user