mirror of
https://gitee.com/dromara/liteFlow.git
synced 2026-05-15 04:22:09 +08:00
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:
@@ -64,7 +64,7 @@ public class SwitchCondition extends Condition {
|
||||
}
|
||||
else {
|
||||
targetExecutor = targetList.stream()
|
||||
.filter(executable -> executable.getId().equals(targetId))
|
||||
.filter(executable -> ObjectUtil.equal(executable.getId(),targetId) )
|
||||
.findFirst()
|
||||
.orElse(null);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user