Fix a null reference exception CID 18098 & 18110

This commit is contained in:
_aLfa_ 2014-11-21 19:21:30 +01:00
parent 9755e4ec49
commit 9489456d99

View File

@ -380,14 +380,16 @@ namespace Nikse.SubtitleEdit.Controls
}
}
internal void Fill(Subtitle subtitle)
internal void Fill(Subtitle subtitle, Subtitle subtitleAlternate = null)
{
Fill(subtitle.Paragraphs);
}
internal void Fill(Subtitle subtitle, Subtitle subtitleAlternate)
{
Fill(subtitle.Paragraphs, subtitleAlternate.Paragraphs);
if (subtitleAlternate == null)
{
Fill(subtitle.Paragraphs);
}
else
{
Fill(subtitle.Paragraphs, subtitleAlternate.Paragraphs);
}
}
internal void Fill(List<Paragraph> paragraphs)