Skip to content

Commit

Permalink
Fix null exception + bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
lay295 committed Oct 20, 2021
1 parent 96ad93e commit 0312e34
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion TwitchDownloaderCLI/TwitchDownloaderCLI.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>netcoreapp3.1</TargetFramework>
<Version>1.40.3</Version>
<Version>1.40.4</Version>
</PropertyGroup>

<ItemGroup>
Expand Down
12 changes: 6 additions & 6 deletions TwitchDownloaderCore/ChatRenderer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Fragment>();
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<Fragment>();
comment.message.fragments.Add(new Fragment());
comment.message.fragments[0].text = comment.message.body;
}
}
if (comment.message.fragments == null || comment.commenter == null)
continue;
Expand Down
2 changes: 1 addition & 1 deletion TwitchDownloaderWPF/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]

0 comments on commit 0312e34

Please sign in to comment.