Fix deepscan error.

This commit is contained in:
kovacsv 2022-01-21 18:50:58 +01:00
parent 528541cfd4
commit c3f75a23b4

View File

@ -199,7 +199,7 @@ export class Importer
{
if (mainFile === null || mainFile.file === null || mainFile.file.content === null) {
let error = new ImportError (ImportErrorCode.FailedToLoadFile);
if (mainFile.file !== null) {
if (mainFile !== null && mainFile.file !== null) {
error.mainFile = mainFile.file.name;
}
callbacks.onImportError (error);