Fix deepscan error.
This commit is contained in:
parent
528541cfd4
commit
c3f75a23b4
@ -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);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user