From 9f05d779eb83181c74fc676553072abb7bbfaedd Mon Sep 17 00:00:00 2001 From: sr55 Date: Sun, 18 Aug 2019 17:39:16 +0100 Subject: WinGui: Fix a subtitle related error when adding to queue. Fixes #2253 --- win/CS/HandBrakeWPF/Services/Encode/Model/Models/SubtitleTrack.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'win') diff --git a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/SubtitleTrack.cs b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/SubtitleTrack.cs index c607d8de0..3f570fcac 100644 --- a/win/CS/HandBrakeWPF/Services/Encode/Model/Models/SubtitleTrack.cs +++ b/win/CS/HandBrakeWPF/Services/Encode/Model/Models/SubtitleTrack.cs @@ -191,7 +191,10 @@ namespace HandBrakeWPF.Services.Encode.Model.Models this.Forced = false; } - this.Name = !string.IsNullOrEmpty(this.sourceTrack.Name) ? this.sourceTrack.Name : string.Empty; + if (this.sourceTrack != null) + { + this.Name = !string.IsNullOrEmpty(this.sourceTrack.Name) ? this.sourceTrack.Name : string.Empty; + } } } -- cgit v1.2.3