This commit is contained in:
Nikolaj Olsson 2024-05-07 18:42:24 +02:00
parent be432810e1
commit ea565668ce

View File

@ -543,9 +543,9 @@ namespace Nikse.SubtitleEdit.Forms.Tts
labelProgress.Text = string.Format(LanguageSettings.Current.TextToSpeech.MergingAudioTrackXOfY, index + 1, _subtitle.Paragraphs.Count); labelProgress.Text = string.Format(LanguageSettings.Current.TextToSpeech.MergingAudioTrackXOfY, index + 1, _subtitle.Paragraphs.Count);
var p = _subtitle.Paragraphs[index]; var p = _subtitle.Paragraphs[index];
var pFileName = fileNames[index]; var pFileName = fileNames[index];
if (!File.Exists(pFileName.Filename)) if (pFileName == null || !File.Exists(pFileName.Filename))
{ {
SeLogger.Error($"TextToSpeech: File not found (skipping): {pFileName.Filename}"); SeLogger.Error($"TextToSpeech: File not found (skipping): {pFileName?.Filename}");
continue; continue;
} }