Skip to content

Commit

Permalink
Fix NullReferenceException when updating chats without games (#925)
Browse files Browse the repository at this point in the history
  • Loading branch information
ScrubN authored Jan 5, 2024
1 parent ee7c269 commit e270962
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchDownloaderCore/ChatUpdater.cs
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ private async Task UpdateVideoInfo(int totalSteps, int currentStep, IProgress<Pr
chatRoot.video.created_at = videoInfo.createdAt;
chatRoot.video.length = videoInfo.lengthSeconds;
chatRoot.video.viewCount = videoInfo.viewCount;
chatRoot.video.game = videoInfo.game.displayName;
chatRoot.video.game = videoInfo.game?.displayName;

var chaptersInfo = (await TwitchHelper.GetOrGenerateVideoChapters(videoId, videoInfo)).data.video.moments.edges;
foreach (var responseChapter in chaptersInfo)
Expand Down

0 comments on commit e270962

Please sign in to comment.