diff --git a/IDEHelper/Compiler/BfModule.cpp b/IDEHelper/Compiler/BfModule.cpp index e6763abe..e08b33ce 100644 --- a/IDEHelper/Compiler/BfModule.cpp +++ b/IDEHelper/Compiler/BfModule.cpp @@ -12788,7 +12788,7 @@ bool BfModule::InDefinitionSection() bool BfModule::IsInSpecializedGeneric() { - if (mCurTypeInstance->IsSpecializedType()) + if ((mCurTypeInstance != NULL) && (mCurTypeInstance->IsSpecializedType())) return true; if ((mCurMethodInstance == NULL) || (mCurMethodInstance->mIsUnspecialized)) return false;