mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-07-31 04:45:38 +02:00
NPE check.
This commit is contained in:
parent
37ec649c07
commit
be136db87e
1 changed files with 3 additions and 1 deletions
|
@ -817,7 +817,9 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
|
|||
IPath path = convertPath( handle );
|
||||
ICDILineLocation location = cdiTarget.createLineLocation( path.toPortableString(), breakpoint.getLineNumber() );
|
||||
ICDICondition condition = createCondition( breakpoint );
|
||||
fBreakpointProblems.add(BreakpointProblems.reportUnresolvedBreakpoint(breakpoint, getDebugTarget().getName(), getDebugTarget().getInternalID()));
|
||||
IMarker marker = BreakpointProblems.reportUnresolvedBreakpoint(breakpoint, getDebugTarget().getName(), getDebugTarget().getInternalID());
|
||||
if (marker != null)
|
||||
fBreakpointProblems.add(marker);
|
||||
if (bpManager2 != null)
|
||||
b = bpManager2.setLineBreakpoint( breakpointType, location, condition, true, icbreakpoint.isEnabled() );
|
||||
else
|
||||
|
|
Loading…
Add table
Reference in a new issue