防止回放空时报空指针

pull/774/head
gaoxun250@sina.com 2023-03-10 10:33:48 +08:00
parent a5d9afeb60
commit 273b282af6
1 changed files with 3 additions and 2 deletions

View File

@ -163,8 +163,9 @@ public class RecordInfoResponseMessageHandler extends SIPRequestProcessorParent
public void releaseRequest(String deviceId, String sn,RecordInfo recordInfo){
String key = DeferredResultHolder.CALLBACK_CMD_RECORDINFO + deviceId + sn;
// 对数据进行排序
Collections.sort(recordInfo.getRecordList());
if(recordInfo!=null && recordInfo.getRecordList()!=null) {
Collections.sort(recordInfo.getRecordList());
}
RequestMessage msg = new RequestMessage();
msg.setKey(key);
msg.setData(recordInfo);