mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-06-08 18:26:01 +02:00
Bug 311122 - [breakpoints] NPE in AbstractBreakpointVMNode.
This commit is contained in:
parent
2fd8cfac1d
commit
9acd76c5b0
1 changed files with 4 additions and 6 deletions
|
@ -284,8 +284,7 @@ public class BreakpointVMProvider extends AbstractVMProvider
|
||||||
(BreakpointOrganizerVMNode)_nestingOrganizerVmc.getVMNode(), path.getParentPath(),
|
(BreakpointOrganizerVMNode)_nestingOrganizerVmc.getVMNode(), path.getParentPath(),
|
||||||
new DataRequestMonitor<List<BreakpointOrganizerVMContext>>(getExecutor(), rm) {
|
new DataRequestMonitor<List<BreakpointOrganizerVMContext>>(getExecutor(), rm) {
|
||||||
@Override
|
@Override
|
||||||
protected void handleCompleted() {
|
protected void handleSuccess() {
|
||||||
if (isSuccess()) {
|
|
||||||
int newVmcIdx = getData().indexOf(_nestingOrganizerVmc);
|
int newVmcIdx = getData().indexOf(_nestingOrganizerVmc);
|
||||||
|
|
||||||
if (newVmcIdx >= 0) {
|
if (newVmcIdx >= 0) {
|
||||||
|
@ -293,7 +292,6 @@ public class BreakpointVMProvider extends AbstractVMProvider
|
||||||
} else {
|
} else {
|
||||||
rm.setStatus(new Status(IStatus.ERROR, DsfUIPlugin.PLUGIN_ID, IDsfStatusConstants.INVALID_HANDLE, "Breakpoint category not found", null)); //$NON-NLS-1$
|
rm.setStatus(new Status(IStatus.ERROR, DsfUIPlugin.PLUGIN_ID, IDsfStatusConstants.INVALID_HANDLE, "Breakpoint category not found", null)); //$NON-NLS-1$
|
||||||
}
|
}
|
||||||
}
|
|
||||||
rm.done();
|
rm.done();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Reference in a new issue