mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-26 05:02:36 +01:00
Fix a null reference exception CID 18098 & 18110
This commit is contained in:
parent
9755e4ec49
commit
9489456d99
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user