From 8bb2605d0630c6a4c5c1b9fb6c78c23d5423a9b8 Mon Sep 17 00:00:00 2001 From: "Admiral H. Curtiss" Date: Fri, 15 Nov 2024 02:18:47 +0100 Subject: [PATCH] Add null check for emoticon id in TwitchHelper.GetEmotes() (#1254) (#1255) --- 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 {