1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-07-19 15:05:36 +02:00

Adjusted minor inneficiency someone here noticed.

This commit is contained in:
John Cortell 2007-12-14 21:15:18 +00:00
parent 0408d6e901
commit 56dd415d35

View file

@ -459,9 +459,10 @@ public class CBreakpointManager implements IBreakpointsListener, IBreakpointMana
if ( breakpoint == null ) {
breakpoint = createLocationBreakpoint( cdiBreakpoint );
}
synchronized( getBreakpointMap() ) {
if ( breakpoint != null )
if ( breakpoint != null ) {
synchronized( getBreakpointMap() ) {
getBreakpointMap().put( breakpoint, cdiBreakpoint );
}
}
if ( breakpoint != null ) {