diff --git a/src/coreclr/debug/ee/controller.cpp b/src/coreclr/debug/ee/controller.cpp index 882561cb9b6d3..1738eb5862fee 100644 --- a/src/coreclr/debug/ee/controller.cpp +++ b/src/coreclr/debug/ee/controller.cpp @@ -5657,7 +5657,7 @@ static bool IsTailCall(const BYTE * ip, ControllerStackInfo* info, TailCallFunct if (type == TailCallFunctionType::StoreTailCallArgs) { - return (pTargetMD->IsDynamicMethod() && pTargetMD->AsDynamicMethodDesc()->GetILStubType() == DynamicMethodDesc::StubTailCallStoreArgs); + return (pTargetMD && pTargetMD->IsDynamicMethod() && pTargetMD->AsDynamicMethodDesc()->GetILStubType() == DynamicMethodDesc::StubTailCallStoreArgs); } if (pTargetMD != pTailCallDispatcherMD)