mirror of
https://github.com/SubtitleEdit/subtitleedit.git
synced 2024-11-22 11:12:36 +01:00
Fix dereference after null check CID 83028
This commit is contained in:
parent
21948f9eb5
commit
ff78636abd
@ -2319,6 +2319,11 @@ namespace Nikse.SubtitleEdit.Forms
|
||||
private static NOcrChar NOcrFindBestMatchNew(ImageSplitterItem targetItem, int topMargin, out bool italic, NOcrDb nOcrDb, bool tryItalicScaling, bool deepSeek)
|
||||
{
|
||||
italic = false;
|
||||
if (nOcrDb == null)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
var nbmp = targetItem.NikseBitmap;
|
||||
int index;
|
||||
foreach (NOcrChar oc in nOcrDb.OcrCharacters)
|
||||
|
Loading…
Reference in New Issue
Block a user