1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

mCurMethodState null check in CheckLabel

This commit is contained in:
Brian Fiete 2025-03-31 08:57:41 -04:00
parent 11bc782835
commit f750d44d8d

View file

@ -3296,6 +3296,9 @@ void BfAutoComplete::CheckLabel(BfIdentifierNode* identifierNode, BfAstNode* pre
String filter; String filter;
if (identifierNode != NULL) if (identifierNode != NULL)
{ {
if (mModule->mCurMethodState == NULL)
return;
if ((mModule->mCompiler->mResolvePassData != NULL) && (scopeData != NULL)) if ((mModule->mCompiler->mResolvePassData != NULL) && (scopeData != NULL))
{ {
auto rootMethodState = mModule->mCurMethodState->GetRootMethodState(); auto rootMethodState = mModule->mCurMethodState->GetRootMethodState();