diff --git a/auto-solution-behaviour/src/main/java/com/solution/system/service/impl/BehaviortreeServiceImpl.java b/auto-solution-behaviour/src/main/java/com/solution/system/service/impl/BehaviortreeServiceImpl.java index a389b2a..2348cbd 100644 --- a/auto-solution-behaviour/src/main/java/com/solution/system/service/impl/BehaviortreeServiceImpl.java +++ b/auto-solution-behaviour/src/main/java/com/solution/system/service/impl/BehaviortreeServiceImpl.java @@ -121,7 +121,7 @@ public class BehaviortreeServiceImpl implements IBehaviortreeService throw new RuntimeException(ExceptionConstants.PARAMETER_EXCEPTION); } Behaviortree behaviortree = behaviortreeMapper.selectBehaviortreeById(Long.valueOf(treeId)); - if(ObjectUtil.isEmpty(behaviortree) && null == behaviortree.getId()){ + if(ObjectUtil.isEmpty(behaviortree) || null == behaviortree.getId()){ throw new RuntimeException(ExceptionConstants.PARAMETER_EXCEPTION); } //根据行为树id获取行为树所属平台