diff --git a/src/main/java/com/dispose/service/impl/DeviceTaskManagerServiceImpl.java b/src/main/java/com/dispose/service/impl/DeviceTaskManagerServiceImpl.java index 102071b8..7bfc8429 100644 --- a/src/main/java/com/dispose/service/impl/DeviceTaskManagerServiceImpl.java +++ b/src/main/java/com/dispose/service/impl/DeviceTaskManagerServiceImpl.java @@ -466,6 +466,11 @@ public class DeviceTaskManagerServiceImpl implements DeviceTaskManagerService { // 获取设备 AbilityInfo ai = disposeAbilityRouterService.getAbilityDevice(v.getDeviceId()); + // 如果设备已经删除或者禁用,跳过处理 + if(ai == null) { + continue; + } + // 对处置IP生成一个唯一的操作标识符 String taskStartKey = task.getDisposeObject() + "Start" + ai.getDev().getDeviceType().getDescription();