mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
mCurMethodState null check in CheckLabel
This commit is contained in:
parent
11bc782835
commit
f750d44d8d
1 changed files with 3 additions and 0 deletions
|
@ -3296,6 +3296,9 @@ void BfAutoComplete::CheckLabel(BfIdentifierNode* identifierNode, BfAstNode* pre
|
|||
String filter;
|
||||
if (identifierNode != NULL)
|
||||
{
|
||||
if (mModule->mCurMethodState == NULL)
|
||||
return;
|
||||
|
||||
if ((mModule->mCompiler->mResolvePassData != NULL) && (scopeData != NULL))
|
||||
{
|
||||
auto rootMethodState = mModule->mCurMethodState->GetRootMethodState();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue