update liteflow-core/src/main/java/com/yomahub/liteflow/flow/element/condition/SwitchCondition.java.
SwitchCondition节点若在流程中未设置id,会导致 executable.getId() 为null,从而报NPE异常 Signed-off-by: zcl <9928619+zhangcl1991@user.noreply.gitee.com>
This commit is contained in:
parent
938afb6ad6
commit
09f3412289
|
@ -64,7 +64,7 @@ public class SwitchCondition extends Condition {
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
targetExecutor = targetList.stream()
|
targetExecutor = targetList.stream()
|
||||||
.filter(executable -> executable.getId().equals(targetId))
|
.filter(executable -> ObjectUtil.equal(executable.getId(),targetId) )
|
||||||
.findFirst()
|
.findFirst()
|
||||||
.orElse(null);
|
.orElse(null);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue