1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00

[219841] Fixed an NPE in BreakpointsMediator related to breakpoints that failed to plant.

This commit is contained in:
Pawel Piech 2008-03-24 16:22:34 +00:00
parent 391048a4f0
commit e6830c9ab4

View file

@ -420,13 +420,15 @@ public class BreakpointsMediator extends AbstractDsfService implements IBreakpoi
new DataRequestMonitor<IBreakpointDMContext>(getExecutor(), installRM) { new DataRequestMonitor<IBreakpointDMContext>(getExecutor(), installRM) {
@Override @Override
protected void handleCompleted() { protected void handleCompleted() {
if (getStatus().isOK()) { List<IBreakpointDMContext> list = breakpointIDs.get(breakpoint);
if (list == null) {
list = new LinkedList<IBreakpointDMContext>();
breakpointIDs.put(breakpoint, list);
}
if (getStatus().isOK()) {
// Add the breakpoint back-end mapping // Add the breakpoint back-end mapping
List<IBreakpointDMContext> list = breakpointIDs.get(breakpoint);
if (list == null)
list = new LinkedList<IBreakpointDMContext>();
list.add(getData()); list.add(getData());
breakpointIDs.put(breakpoint, list);
} else { } else {
// TODO (bug 219841): need to add breakpoint error status tracking // TODO (bug 219841): need to add breakpoint error status tracking
// in addition to fBreakpointDMContexts. // in addition to fBreakpointDMContexts.