diff --git a/src/main/java/com/dispose/service/impl/DisposeNodeManagerImpl.java b/src/main/java/com/dispose/service/impl/DisposeNodeManagerImpl.java index 7ea94d87..430b2ab5 100644 --- a/src/main/java/com/dispose/service/impl/DisposeNodeManagerImpl.java +++ b/src/main/java/com/dispose/service/impl/DisposeNodeManagerImpl.java @@ -139,8 +139,9 @@ public class DisposeNodeManagerImpl implements DisposeNodeManager { if (dev.getType() == null || dev.getIpAddr() == null || dev.getIpAddr().length() == 0 - || !IPAddrType.isIpAddress(dev.getIpAddr())) { - log.error("Add device error: type {}, ip {}", dev.getType(), dev.getIpAddr()); + || !IPAddrType.isIpAddress(dev.getIpAddr()) + || dev.getUrl() == null || dev.getUrl().length() == 0) { + log.error("Add device error: type {}, ip {} url {}", dev.getType(), dev.getIpAddr(), dev.getUrl()); return new MulReturnType<>(ErrorCode.ERR_PARAMS, String.valueOf(-1)); }