Ver Fonte

冰水 增加深埋通 接收处理数据null 判断

jianghouwei há 6 anos atrás
pai
commit
7fef31b553

+ 1 - 1
src/main/java/com/tidecloud/dataacceptance/service/impl/BingShuiGpsServerHandler.java

@@ -114,7 +114,7 @@ public class BingShuiGpsServerHandler extends HexBinaryAcceptanceHandlerAdapter
 					deviceReplyClient.updateReplyActiveByDeviceIdAndFactory(deviceId, FACTORY);
 				} else {
 					DeviceReplyDto dto = deviceReplyClient.queryDeviceReplyByDeviceIdAndFactory(deviceId, FACTORY);
-					if (dto.getActive() != null && !dto.getActive()) {
+					if (dto!= null && dto.getActive() != null && !dto.getActive()) {
 						// 设置不成功
 						logger.warn("设备:" + deviceId + "设置参数:" + dto.getReplyInstructions());
 						return dto.getReplyInstructions();