From f94a23f0eb31067afd53201e006165b0f1464897 Mon Sep 17 00:00:00 2001 From: sr55 Date: Mon, 8 Oct 2018 18:24:17 +0100 Subject: WinGui: Fix a potential NPE --- win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3