Pre Merge pull request !357 from 金闪闪/fix/notcondition-npe

This commit is contained in:
金闪闪 2026-08-07 07:15:16 +00:00 committed by Gitee
commit 7dee2bfcdd
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
2 changed files with 5 additions and 4 deletions

View File

@ -37,7 +37,7 @@ public class CatchCondition extends Condition {
//ChainEndException属于用户主动结束流程不应该进入Catch的流程
throw e;
}catch (Exception e) {
LOG.error("catch exception:" + e.getMessage(), e);
LOG.warn("catch exception (handled):" + e.getMessage(), e);
Executable doExecutable = this.getDoItem();
if (ObjectUtil.isNotNull(doExecutable)) {
doExecutable.setCurrChainId(this.getCurrChainId());
@ -70,4 +70,4 @@ public class CatchCondition extends Condition {
this.addExecutable(ConditionKey.DO_KEY, executable);
}
}
}

View File

@ -20,7 +20,8 @@ public class NotCondition extends Condition {
item.setCurrChainId(this.getCurrChainId());
item.execute(slotIndex);
boolean flag = item.getItemResultMetaValue(slotIndex);
Boolean resultValue = item.getItemResultMetaValue(slotIndex);
boolean flag = BooleanUtil.isTrue(resultValue);
LOG.info("the result of boolean component [{}] is [{}]", item.getId(), flag);
@ -52,4 +53,4 @@ public class NotCondition extends Condition {
return this.getExecutableOne(ConditionKey.NOT_ITEM_KEY);
}
}
}