Commit 9f05d779 authored by sr55's avatar sr55

WinGui: Fix a subtitle related error when adding to queue. Fixes #2253

parent cacac691
......@@ -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;
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment