1
0
Fork 0
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:
Marc Dumais 2017-02-06 09:54:40 -05:00 committed by Gerrit Code Review @ Eclipse.org
parent 86189eeb86
commit 7dbe0de0fe

View file

@ -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();
}
});