diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index 439aab4d..bcb55092 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -15278,7 +15278,7 @@ void BfModule::AssertErrorState() { if (mCurTypeInstance->mTypeFailed) return; - if (mCurTypeInstance->mTypeDef->mSource->mParsingFailed) + if ((mCurTypeInstance->mTypeDef->mSource != NULL) && (mCurTypeInstance->mTypeDef->mSource->mParsingFailed)) return; } if (mCurMethodInstance != NULL)