mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-04-29 19:45:01 +02:00
Bug 390979 - NullPointerException in BreakpointsMediator2.getPlatformBreakpoint()
This commit is contained in:
parent
dfd77d4cb3
commit
5e4cd0c1a9
1 changed files with 4 additions and 2 deletions
|
@ -483,9 +483,11 @@ public class BreakpointsMediator2 extends AbstractDsfService implements IBreakpo
|
|||
for(Map.Entry<IBreakpoint, List<ITargetBreakpointInfo>> e: platformBPs.entrySet())
|
||||
{
|
||||
// Stop at the first occurrence
|
||||
for (ITargetBreakpointInfo tbp : e.getValue())
|
||||
if(tbp.getTargetBreakpoint().equals(bp))
|
||||
for (ITargetBreakpointInfo tbp : e.getValue()) {
|
||||
IBreakpointDMContext targetBreakpoint = tbp.getTargetBreakpoint();
|
||||
if(targetBreakpoint != null && targetBreakpoint.equals(bp))
|
||||
return e.getKey();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue