We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 41ba54b commit d38e2adCopy full SHA for d38e2ad
src/CLR/Debugger/Debugger.cpp
@@ -124,6 +124,8 @@ HRESULT CLR_DBG_Debugger::DeleteInstance()
124
// free debugger
125
platform_free(g_CLR_DBG_Debugger);
126
127
+ g_CLR_DBG_Debugger = NULL;
128
+
129
NANOCLR_NOCLEANUP_NOLABEL();
130
}
131
src/CLR/Messaging/Messaging.cpp
@@ -391,6 +391,11 @@ bool CLR_Messaging::ProcessPayload( WP_Message* msg )
391
// wrapper function for CLR_Messaging::ProcessPayload(
392
extern "C" int CLR_Messaging_ProcessPayload(WP_Message* msg)
393
{
394
+ if (g_CLR_DBG_Debugger == NULL)
395
+ {
396
+ return false;
397
+ }
398
399
bool retValue = g_CLR_DBG_Debugger->m_messaging->ProcessPayload(msg);
400
return retValue;
401
0 commit comments