Skip to content

Commit bc97b0a

Browse files
Case: The method has not been jitted yet (#90821)
1 parent 353d5ea commit bc97b0a

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

src/coreclr/debug/ee/functioninfo.cpp

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1575,7 +1575,11 @@ DebuggerJitInfo *DebuggerMethodInfo::FindOrCreateInitAndAddJitInfo(MethodDesc* f
15751575
if (startAddr == NULL)
15761576
{
15771577
startAddr = g_pEEInterface->GetFunctionAddress(fd);
1578-
_ASSERTE(startAddr != NULL);
1578+
if (startAddr == NULL)
1579+
{
1580+
//The only case this should happen is if we are trying to get the DJI for a method that has not been jitted yet.
1581+
return NULL;
1582+
}
15791583
}
15801584
else
15811585
{

0 commit comments

Comments
 (0)