|
@@ -372,7 +372,9 @@ public class MsgAlarmController extends BaseController {
|
|
|
}
|
|
|
if(!ObjectUtils.isEmpty(msgAlarm.getSource())){
|
|
|
MonitorSystem monitorSystem = monitorSystemService.selectByClientId(msgAlarm.getSource());
|
|
|
- msgAlarmResp.setSourceName(monitorSystem.getMonitorSystemName());
|
|
|
+ if (!ObjectUtils.isEmpty(monitorSystem)) {
|
|
|
+ msgAlarmResp.setSourceName(monitorSystem.getMonitorSystemName());
|
|
|
+ }
|
|
|
}
|
|
|
});
|
|
|
return AjaxResult.success(msgAlarmResp);
|