diff --git a/src/CloudGaming/Code/CloudGaming.Code/Epg/EpgExtend.cs b/src/CloudGaming/Code/CloudGaming.Code/Epg/EpgExtend.cs index 1c96da9..61ddf34 100644 --- a/src/CloudGaming/Code/CloudGaming.Code/Epg/EpgExtend.cs +++ b/src/CloudGaming/Code/CloudGaming.Code/Epg/EpgExtend.cs @@ -32,12 +32,12 @@ namespace CloudGaming.Code.Epg { CornerIcon = epgCfg.CornerIconId, EpgId = epgCfg.Id, - ResId = epgCfg.ResId, + ResId = epgCfg.ResId ?? "", ResType = epgCfg.ResType, - IdName = epgCfg.IdName, + IdName = epgCfg.IdName ?? "", ImageUrl = epgCfg.ImageId, - Title = epgCfg.Title, - SubTitle = epgCfg.Title2 + Title = epgCfg.Title ?? "", + SubTitle = epgCfg.Title2 ?? "" }; if (epgCfg.ResType == (int)EpgEnum.EpgResType.游戏) @@ -50,11 +50,11 @@ namespace CloudGaming.Code.Epg if (string.IsNullOrEmpty(epgInfo.Title)) { - epgInfo.Title = gameInfo.GameName; + epgInfo.Title = gameInfo.GameName ?? ""; } if (string.IsNullOrEmpty(epgInfo.SubTitle)) { - epgInfo.SubTitle = gameInfo.Title2; + epgInfo.SubTitle = gameInfo.Title2 ?? ""; } if (epgCfg.ImageResStyle == 0) {