summaryrefslogtreecommitdiffstats
path: root/win/CS
diff options
context:
space:
mode:
authorsr55 <[email protected]>2018-10-08 18:24:17 +0100
committersr55 <[email protected]>2018-10-08 18:24:42 +0100
commitf94a23f0eb31067afd53201e006165b0f1464897 (patch)
tree03a940494fd2c72e3679374036f0aa1d767ee065 /win/CS
parenta3fb08633e62775c251886aa6dff15e5f91f60e4 (diff)
WinGui: Fix a potential NPE
Diffstat (limited to 'win/CS')
-rw-r--r--win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs2
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;