解决空指针异常

pull/1414/head
648540858 2024-04-12 09:00:39 +08:00
parent 5c0183a422
commit da54cdf3b8
1 changed files with 3 additions and 0 deletions

View File

@ -115,6 +115,9 @@ public class MediaServerServiceImpl implements IMediaServerService {
removeCount(event.getMediaServer().getId());
MediaInfo mediaInfo = redisCatchStorage.getStreamInfo(
event.getApp(), event.getStream(), event.getMediaServer().getId());
if (mediaInfo == null) {
return;
}
String type = OriginType.values()[mediaInfo.getOriginType()].getType();
redisCatchStorage.removeStream(mediaInfo.getMediaServer().getId(), type, event.getApp(), event.getStream());
}