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) {
|
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.
|
||||||
|
|
Loading…
Add table
Reference in a new issue