diff --git a/BarrageGrab/Server/WsBarrageServer.cs b/BarrageGrab/Server/WsBarrageServer.cs index 68c94c5..31276fa 100644 --- a/BarrageGrab/Server/WsBarrageServer.cs +++ b/BarrageGrab/Server/WsBarrageServer.cs @@ -291,14 +291,18 @@ namespace BarrageGrab var roomInfo = AppRuntime.RoomCaches.GetCachedWebRoomInfo(msg.RoomId.ToString()); if (roomInfo == null) return; - msg.Owner = new RoomAnchorInfo() + if (roomInfo.Owner != null) { - Nickname = roomInfo.Owner.Nickname, - HeadUrl = roomInfo.Owner.HeadUrl, - FollowStatus = roomInfo.Owner.FollowStatus, - SecUid = roomInfo.Owner.SecUid, - UserId = roomInfo.Owner.UserId - }; + msg.Owner = new RoomAnchorInfo() + { + Nickname = roomInfo.Owner.Nickname, + HeadUrl = roomInfo.Owner.HeadUrl, + FollowStatus = roomInfo.Owner.FollowStatus, + SecUid = roomInfo.Owner.SecUid, + UserId = roomInfo.Owner.UserId + }; + } + if (msg.WebRoomId.IsNullOrWhiteSpace()) {