Skip to content

Commit

Permalink
Case: The method has not been jitted yet (dotnet#90821)
Browse files Browse the repository at this point in the history
  • Loading branch information
mikelle-rogers authored Sep 18, 2023
1 parent 353d5ea commit bc97b0a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/coreclr/debug/ee/functioninfo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1575,7 +1575,11 @@ DebuggerJitInfo *DebuggerMethodInfo::FindOrCreateInitAndAddJitInfo(MethodDesc* f
if (startAddr == NULL)
{
startAddr = g_pEEInterface->GetFunctionAddress(fd);
_ASSERTE(startAddr != NULL);
if (startAddr == NULL)
{
//The only case this should happen is if we are trying to get the DJI for a method that has not been jitted yet.
return NULL;
}
}
else
{
Expand Down

0 comments on commit bc97b0a

Please sign in to comment.