1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-09 03:52:19 +02:00

Null check

This commit is contained in:
Brian Fiete 2020-08-10 17:37:40 -07:00
parent 35505d905a
commit cea4b6cdd8

View file

@ -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;