Commit 34f1def9 by 李小龙 Committed by huangjy

fix:空指针

parent 8c121912
...@@ -113,7 +113,7 @@ public class BreathAlarm implements IAlarm { ...@@ -113,7 +113,7 @@ public class BreathAlarm implements IAlarm {
} }
if ((br > end || br < start)) { if ((br > end || br < start) && StringUtils.equalsAnyIgnoreCase(messageType, "REPORT_PROPERTY")) {
if(alarmRedisDTO==null){ if(alarmRedisDTO==null){
alarmRedisDTO = new AlarmRedisDTO(); alarmRedisDTO = new AlarmRedisDTO();
alarmRedisDTO.setAlarm(CommonEnum.NO.getValue()); alarmRedisDTO.setAlarm(CommonEnum.NO.getValue());
......
...@@ -102,7 +102,7 @@ public class HeartAlarm implements IAlarm { ...@@ -102,7 +102,7 @@ public class HeartAlarm implements IAlarm {
return; return;
} }
if ((hr > end || hr < start)) { if ((hr > end || hr < start) && StringUtils.equalsAnyIgnoreCase(messageType, "REPORT_PROPERTY")) {
if(alarmRedisDTO==null){ if(alarmRedisDTO==null){
alarmRedisDTO = new AlarmRedisDTO(); alarmRedisDTO = new AlarmRedisDTO();
alarmRedisDTO.setAlarm(CommonEnum.NO.getValue()); alarmRedisDTO.setAlarm(CommonEnum.NO.getValue());
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment