修复空指针异常

pull/1533/head
648540858 2024-07-15 16:30:21 +08:00
parent cf5ca3afb9
commit 9d37e96f06
1 changed files with 1 additions and 1 deletions

View File

@ -763,7 +763,7 @@ public class MediaServerServiceImpl implements IMediaServerService {
calld = streamAuthorityInfo.getCallId();
}
List<StreamInfo> streamInfoList = getMediaList(mediaInfo, app, stream, calld);
if (streamInfoList.isEmpty()) {
if (streamInfoList == null || streamInfoList.isEmpty()) {
return null;
}else {
return streamInfoList.get(0);