Browse Source

Bugfix (Alex): pAppDomain can be null in NameChange callback

git-svn-id: svn://svn.sharpdevelop.net/sharpdevelop/trunk@1705 1ccf3a8d-04fe-1044-b7c0-cef0b8235c61
shortcuts
David Srbecký 20 years ago
parent
commit
722f9defa9
  1. 7
      src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallbackSwitch.cs

7
src/AddIns/Misc/Debugger/Debugger.Core/Project/Src/Debugger/Internal/ManagedCallbackSwitch.cs

@ -158,7 +158,12 @@ namespace Debugger @@ -158,7 +158,12 @@ namespace Debugger
public void NameChange(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)
{
GetProcessCallbackInterface(pAppDomain).NameChange(pAppDomain, pThread);
if (pAppDomain != null) {
GetProcessCallbackInterface(pAppDomain).NameChange(pAppDomain, pThread);
}
if (pThread != null) {
GetProcessCallbackInterface(pThread.Process).NameChange(pAppDomain, pThread);
}
}
public void CreateThread(ICorDebugAppDomain pAppDomain, ICorDebugThread pThread)

Loading…
Cancel
Save