Skip to content

Commit 3c45db1

Browse files
committed
Fixed crash checking generic args for local method
1 parent 34dcd47 commit 3c45db1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

IDEHelper/Compiler/BfExprEvaluator.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13576,7 +13576,7 @@ BfModuleMethodInstance BfExprEvaluator::GetSelectedMethod(BfAstNode* targetSrc,
1357613576
{
1357713577
// If the root method is generic and we need that param then use that...
1357813578
auto rootMethodInstance = rootMethodState->mMethodInstance;
13579-
if (checkGenericIdx < rootMethodInstance->mMethodInfoEx->mMethodGenericArguments.size())
13579+
if ((rootMethodInstance->mMethodInfoEx != NULL) && (checkGenericIdx < rootMethodInstance->mMethodInfoEx->mMethodGenericArguments.size()))
1358013580
{
1358113581
genericArg = rootMethodInstance->mMethodInfoEx->mMethodGenericArguments[checkGenericIdx];
1358213582
}

0 commit comments

Comments
 (0)