diff options
author | Mikhail Khodjaiants | 2003-09-15 18:33:15 +0000 |
---|---|---|
committer | Mikhail Khodjaiants | 2003-09-15 18:33:15 +0000 |
commit | 5669e06d258b1b987d17b893218de33375269da7 (patch) | |
tree | ed3491a9ef7974b00482366839c886008364df1b /debug | |
parent | 56878fb4954a4143506979caae88ea992e2f9d3e (diff) | |
download | org.eclipse.cdt-5669e06d258b1b987d17b893218de33375269da7.tar.gz org.eclipse.cdt-5669e06d258b1b987d17b893218de33375269da7.tar.xz org.eclipse.cdt-5669e06d258b1b987d17b893218de33375269da7.zip |
Fix for PR 43101: Breakpoint exception when source doesn't exist.
The 'fireBreakpointChanged' method of 'BreakpointManager' is used to notify the UI components that a breakpoint is added. This is a part of new implementation to support deffered breakpoints. For new breakpoints the 'delta' argument is null. Check if delta is not null to avoid this problem.
Diffstat (limited to 'debug')
-rw-r--r-- | debug/org.eclipse.cdt.debug.core/ChangeLog | 8 | ||||
-rw-r--r-- | debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java | 2 |
2 files changed, 9 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.core/ChangeLog b/debug/org.eclipse.cdt.debug.core/ChangeLog index 204f3c979d2..6193bec5975 100644 --- a/debug/org.eclipse.cdt.debug.core/ChangeLog +++ b/debug/org.eclipse.cdt.debug.core/ChangeLog @@ -1,3 +1,11 @@ +2003-15-10 Mikhail Khodjaiants + Fix for PR 43101: Breakpoint exception when source doesn't exist. + The 'fireBreakpointChanged' method of 'BreakpointManager' is used to notify + the UI components that a breakpoint is added. This is a part of new implementation + to support deffered breakpoints. For new breakpoints the 'delta' argument is null. + Check if delta is not null to avoid this problem. + * CDebugTarget.java + 2003-11-10 Mikhail Khodjaiants Detail Pane values for casted variables. * CVariable.java: the qualified name should be chached in the InternalVariable instance diff --git a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java index 4767e9c2f92..14b964173a4 100644 --- a/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java +++ b/debug/org.eclipse.cdt.debug.core/src/org/eclipse/cdt/debug/internal/core/model/CDebugTarget.java @@ -796,7 +796,7 @@ public class CDebugTarget extends CDebugElement return; try { - if ( breakpoint instanceof CBreakpoint ) + if ( breakpoint instanceof CBreakpoint && delta != null ) changeBreakpointProperties( (CBreakpoint)breakpoint, delta ); } catch( DebugException e ) |