ToRelease<ICorDebugFrame> pFrame;
IfFailRet(pThread->GetActiveFrame(&pFrame));
+ if (pFrame == nullptr)
+ return E_FAIL;
IfFailRet(pFrame->GetFunctionToken(&methodToken));
IfFailRet(Modules::GetFrameLocation(pFrame, ilOffset, sp));
{
HRESULT Status;
- ToRelease<ICorDebugFrame> pFrame;
- IfFailRet(pThread->GetActiveFrame(&pFrame));
ToRelease<ICorDebugValue> pExceptionValue;
IfFailRet(pThread->GetCurrentException(&pExceptionValue));
TypePrinter::GetTypeOfValue(pExceptionValue, excType);
+ ToRelease<ICorDebugFrame> pFrame;
+ IfFailRet(pThread->GetActiveFrame(&pFrame));
+ if (pFrame == nullptr)
+ return E_FAIL;
ToRelease<ICorDebugFunction> pFunc;
IfFailRet(pFrame->GetFunction(&pFunc));
std::string output;
ToRelease<ICorDebugFrame> pFrame;
- if (SUCCEEDED(pThread->GetActiveFrame(&pFrame)))
+ if (SUCCEEDED(pThread->GetActiveFrame(&pFrame)) && pFrame != nullptr)
PrintFrameLocation(pFrame, output);
DWORD threadId = 0;
std::string output;
ToRelease<ICorDebugFrame> pFrame;
HRESULT Status = S_FALSE;
- if (SUCCEEDED(pThread->GetActiveFrame(&pFrame)))
+ if (SUCCEEDED(pThread->GetActiveFrame(&pFrame)) && pFrame != nullptr)
Status = PrintFrameLocation(pFrame, output);
const bool no_source = Status == S_FALSE;
{
std::string output;
ToRelease<ICorDebugFrame> pFrame;
- if (SUCCEEDED(pThread->GetActiveFrame(&pFrame)))
+ if (SUCCEEDED(pThread->GetActiveFrame(&pFrame)) && pFrame != nullptr)
PrintFrameLocation(pFrame, output);
DWORD threadId = 0;