Fix crash when checking for valid ocr replace list

This commit is contained in:
niksedk 2022-03-30 14:36:49 +02:00
parent 3b8ec4a239
commit fc2afbf307

View File

@ -7320,7 +7320,7 @@ namespace Nikse.SubtitleEdit.Forms.Ocr
} }
var tempOcrFixEngine = new OcrFixEngine(threeLetterIsoLanguageName, hunspellName, this, _ocrMethodIndex == _ocrMethodBinaryImageCompare || _ocrMethodIndex == _ocrMethodNocr); var tempOcrFixEngine = new OcrFixEngine(threeLetterIsoLanguageName, hunspellName, this, _ocrMethodIndex == _ocrMethodBinaryImageCompare || _ocrMethodIndex == _ocrMethodNocr);
var error = _ocrFixEngine.GetOcrFixReplaceListError(); var error = _ocrFixEngine?.GetOcrFixReplaceListError();
if (error != null) if (error != null)
{ {
MessageBox.Show(error); MessageBox.Show(error);