diff options
author | sr55 <[email protected]> | 2019-08-18 17:39:16 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2019-08-18 17:39:39 +0100 |
commit | 9f05d779eb83181c74fc676553072abb7bbfaedd (patch) | |
tree | 2e35b5c9c75ff5cbdfea4e5ca131e93b327bbde0 /win/CS/HandBrakeWPF | |
parent | cacac691cbc895a5d6e096a36aee9ecbde186137 (diff) |
WinGui: Fix a subtitle related error when adding to queue. Fixes #2253
Diffstat (limited to 'win/CS/HandBrakeWPF')
-rw-r--r-- | win/CS/HandBrakeWPF/Services/Encode/Model/Models/SubtitleTrack.cs | 5 |
1 files changed, 4 insertions, 1 deletions
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; + } } } |