Skip to content

Commit

Permalink
Add null check for emoticon id in TwitchHelper.GetEmotes() (#1254) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
AdmiralCurtiss authored Nov 15, 2024
1 parent d42d70b commit 8bb2605
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion TwitchDownloaderCore/TwitchHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ public static async Task<List<TwitchEmote>> GetEmotes(List<Comment> comments, st

foreach (var id in comment.message.fragments
.Select(f => f.emoticon?.emoticon_id)
.Where(id => !alreadyAdded.Contains(id) && !failedEmotes.Contains(id)))
.Where(id => id != null && !alreadyAdded.Contains(id) && !failedEmotes.Contains(id)))
{
try
{
Expand Down

0 comments on commit 8bb2605

Please sign in to comment.