We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3db20d2 commit 8dc61a1Copy full SHA for 8dc61a1
1 file changed
VidCoder/Services/ProcessingService.cs
@@ -688,7 +688,8 @@ public ICommand StopEncode
688
return this.stopEncode ?? (this.stopEncode = ReactiveCommand.Create(
689
() =>
690
{
691
- if (this.EncodeQueue.Items.First().EncodeTime > TimeSpan.FromMinutes(StopWarningThresholdMinutes))
+ var firstItem = this.EncodeQueue.Items.FirstOrDefault();
692
+ if (firstItem != null && firstItem.EncodeTime > TimeSpan.FromMinutes(StopWarningThresholdMinutes))
693
694
MessageBoxResult dialogResult = Utilities.MessageBox.Show(
695
MainRes.StopEncodeConfirmationMessage,
0 commit comments