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:
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;
|
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();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue