parent
8ab11aa2ff
commit
3d00e35524
|
@ -136,9 +136,11 @@ public class DisposeNodeManagerImpl implements DisposeNodeManager {
|
|||
public MulReturnType<ErrorCode, String> addNewDisposeDevice(DisposeDevice dev) {
|
||||
DisposeEntryManager dp;
|
||||
|
||||
if (dev.getType() == null || dev.getIpAddr() == null || !IPAddrType.isIpAddress(dev.getIpAddr())) {
|
||||
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());
|
||||
return new MulReturnType<>(ErrorCode.ERR_PARAMEXCEPTION, String.valueOf(-1));
|
||||
return new MulReturnType<>(ErrorCode.ERR_PARAMS, String.valueOf(-1));
|
||||
}
|
||||
|
||||
try {
|
||||
|
|
Loading…
Reference in New Issue