mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-23 17:05:26 +02:00
Bug 511727 - NPE in org.eclipse.cdt.tests.dsf.gdb.tests.AutomatedSuite
Change-Id: I5f24d617e1577812ba86e44acf4228192f77ab7f
This commit is contained in:
parent
86189eeb86
commit
7dbe0de0fe
1 changed files with 6 additions and 1 deletions
|
@ -822,7 +822,12 @@ public class MIBreakpointsManager extends AbstractDsfService implements IBreakpo
|
|||
@Override
|
||||
protected void handleSuccess() {
|
||||
Map<ICBreakpoint,Map<String,Object>> platformBPs = fPlatformToAttributesMaps.get(dmc);
|
||||
platformBPs.remove(breakpoint);
|
||||
// Note: Protect against NPE. It looks like we just checked the "platformBPs" is not null,
|
||||
// in doUninstallBreakpoint(), but there is a race condition that can make it null
|
||||
// in the meantime, if the debug session is destroyed. See bug 511727
|
||||
if (platformBPs != null) {
|
||||
platformBPs.remove(breakpoint);
|
||||
}
|
||||
super.handleSuccess();
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Reference in a new issue