From 5669e06d258b1b987d17b893218de33375269da7 Mon Sep 17 00:00:00 2001 From: Mikhail Khodjaiants Date: Mon, 15 Sep 2003 18:33:15 +0000 Subject: [PATCH] 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. --- debug/org.eclipse.cdt.debug.core/ChangeLog | 8 ++++++++ .../cdt/debug/internal/core/model/CDebugTarget.java | 2 +- 2 files changed, 9 insertions(+), 1 deletion(-) 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 )