diff options
author | sr55 <[email protected]> | 2018-10-08 18:24:17 +0100 |
---|---|---|
committer | sr55 <[email protected]> | 2018-10-08 18:24:42 +0100 |
commit | f94a23f0eb31067afd53201e006165b0f1464897 (patch) | |
tree | 03a940494fd2c72e3679374036f0aa1d767ee065 /win/CS | |
parent | a3fb08633e62775c251886aa6dff15e5f91f60e4 (diff) |
WinGui: Fix a potential NPE
Diffstat (limited to 'win/CS')
-rw-r--r-- | win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs b/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs index b3e176245..ddd7a17d7 100644 --- a/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs +++ b/win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs @@ -206,7 +206,7 @@ namespace HandBrakeWPF.ViewModels set { - if (!Equals(this.Task.OutputFormat, value)) + if (this.Task != null && !Equals(this.Task.OutputFormat, value)) { this.Task.OutputFormat = value; this.Task.OutputFormat = value; |