From 0312e34a9875c39a517fbb1363174959f113dffa Mon Sep 17 00:00:00 2001 From: lay295 Date: Wed, 20 Oct 2021 16:13:25 -0400 Subject: [PATCH] Fix null exception + bump version --- TwitchDownloaderCLI/TwitchDownloaderCLI.csproj | 2 +- TwitchDownloaderCore/ChatRenderer.cs | 12 ++++++------ TwitchDownloaderWPF/Properties/AssemblyInfo.cs | 2 +- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/TwitchDownloaderCLI/TwitchDownloaderCLI.csproj b/TwitchDownloaderCLI/TwitchDownloaderCLI.csproj index 4c728fa6..9d699ea4 100644 --- a/TwitchDownloaderCLI/TwitchDownloaderCLI.csproj +++ b/TwitchDownloaderCLI/TwitchDownloaderCLI.csproj @@ -3,7 +3,7 @@ Exe netcoreapp3.1 - 1.40.3 + 1.40.4 diff --git a/TwitchDownloaderCore/ChatRenderer.cs b/TwitchDownloaderCore/ChatRenderer.cs index 2f835cb3..54ef72ae 100644 --- a/TwitchDownloaderCore/ChatRenderer.cs +++ b/TwitchDownloaderCore/ChatRenderer.cs @@ -79,12 +79,12 @@ await Task.Run(() => continue; if (!renderOptions.SubMessages && (comment.message.user_notice_params.msg_id == "sub" || comment.message.user_notice_params.msg_id == "resub" || comment.message.user_notice_params.msg_id == "subgift")) continue; - } - if (comment.message.user_notice_params.msg_id == "highlighted-message" && comment.message.fragments == null && comment.message.body != null) - { - comment.message.fragments = new List(); - comment.message.fragments.Add(new Fragment()); - comment.message.fragments[0].text = comment.message.body; + if (comment.message.user_notice_params.msg_id == "highlighted-message" && comment.message.fragments == null && comment.message.body != null) + { + comment.message.fragments = new List(); + comment.message.fragments.Add(new Fragment()); + comment.message.fragments[0].text = comment.message.body; + } } if (comment.message.fragments == null || comment.commenter == null) continue; diff --git a/TwitchDownloaderWPF/Properties/AssemblyInfo.cs b/TwitchDownloaderWPF/Properties/AssemblyInfo.cs index 71667c26..d92013d1 100644 --- a/TwitchDownloaderWPF/Properties/AssemblyInfo.cs +++ b/TwitchDownloaderWPF/Properties/AssemblyInfo.cs @@ -51,5 +51,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("1.40.3.0")] +[assembly: AssemblyVersion("1.40.4.0")] [assembly: AssemblyFileVersion("1.0.0.0")]