]> granicus.if.org Git - handbrake/commitdiff
WinGui: Fix a potential NPE
authorsr55 <sr55.hb@outlook.com>
Mon, 8 Oct 2018 17:24:17 +0000 (18:24 +0100)
committersr55 <sr55.hb@outlook.com>
Mon, 8 Oct 2018 17:24:42 +0000 (18:24 +0100)
win/CS/HandBrakeWPF/ViewModels/SummaryViewModel.cs

index b3e17624543368c8af82ee5dc4979f0d040475e8..ddd7a17d785d1209a0334e5d0430619b17acb2a5 100644 (file)
@@ -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;