From dffda946f4acbb885e2e8a6875ffdf4d1fc48794 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Thu, 14 Nov 2024 19:45:18 +0100 Subject: [PATCH] Add null check for emoticon id in TwitchHelper.GetEmotes() (#1254) --- TwitchDownloaderCore/TwitchHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/TwitchDownloaderCore/TwitchHelper.cs b/TwitchDownloaderCore/TwitchHelper.cs index a3816eef..98133642 100644 --- a/TwitchDownloaderCore/TwitchHelper.cs +++ b/TwitchDownloaderCore/TwitchHelper.cs @@ -539,7 +539,7 @@ public static async Task> GetEmotes(List 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 {