mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-02 05:45:58 +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
|
@Override
|
||||||
protected void handleSuccess() {
|
protected void handleSuccess() {
|
||||||
Map<ICBreakpoint,Map<String,Object>> platformBPs = fPlatformToAttributesMaps.get(dmc);
|
Map<ICBreakpoint,Map<String,Object>> platformBPs = fPlatformToAttributesMaps.get(dmc);
|
||||||
|
// 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);
|
platformBPs.remove(breakpoint);
|
||||||
|
}
|
||||||
super.handleSuccess();
|
super.handleSuccess();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue