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:
parent
391048a4f0
commit
e6830c9ab4
1 changed files with 7 additions and 5 deletions
|
@ -420,13 +420,15 @@ public class BreakpointsMediator extends AbstractDsfService implements IBreakpoi
|
|||
new DataRequestMonitor<IBreakpointDMContext>(getExecutor(), installRM) {
|
||||
@Override
|
||||
protected void handleCompleted() {
|
||||
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
|
||||
List<IBreakpointDMContext> list = breakpointIDs.get(breakpoint);
|
||||
if (list == null)
|
||||
list = new LinkedList<IBreakpointDMContext>();
|
||||
list.add(getData());
|
||||
breakpointIDs.put(breakpoint, list);
|
||||
} else {
|
||||
// TODO (bug 219841): need to add breakpoint error status tracking
|
||||
// in addition to fBreakpointDMContexts.
|
||||
|
|
Loading…
Add table
Reference in a new issue