@@ -470,6 +470,9 @@ public class DeviceInfoService {
}
public DeviceInfoSimpleModel toSimpleModel(String deviceId) {
+ if (StringUtils.isEmpty(deviceId)) {
+ return null;
+ }
DeviceInfo deviceInfo = deviceInfoDao.findTopByDeviceId(deviceId);
return toSimpleModel(deviceInfo);