mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-11 04:52:21 +02:00
Fixed Go To Definition crash with no methodDecl
This commit is contained in:
parent
13ca09a464
commit
7349cdf50f
1 changed files with 2 additions and 2 deletions
|
@ -505,7 +505,7 @@ void BfAutoComplete::AddMethod(BfTypeInstance* typeInstance, BfMethodDef* method
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ((mResolveType == BfResolveType_GoToDefinition) && (mGetDefinitionNode == NULL) && (methodDecl->mNameNode != NULL))
|
if ((mResolveType == BfResolveType_GoToDefinition) && (mGetDefinitionNode == NULL) && (methodDecl != NULL) && (methodDecl->mNameNode != NULL))
|
||||||
SetDefinitionLocation(methodDecl->mNameNode);
|
SetDefinitionLocation(methodDecl->mNameNode);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue