summaryrefslogtreecommitdiffstats
path: root/win/CS/HandBrakeWPF
diff options
context:
space:
mode:
authorsr55 <[email protected]>2019-08-18 17:39:16 +0100
committersr55 <[email protected]>2019-08-18 17:39:39 +0100
commit9f05d779eb83181c74fc676553072abb7bbfaedd (patch)
tree2e35b5c9c75ff5cbdfea4e5ca131e93b327bbde0 /win/CS/HandBrakeWPF
parentcacac691cbc895a5d6e096a36aee9ecbde186137 (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.cs5
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;
+ }
}
}