Skip to main content
aboutsummaryrefslogtreecommitdiffstats
path: root/debug
diff options
context:
space:
mode:
authorMikhail Khodjaiants2003-07-29 20:23:55 +0000
committerMikhail Khodjaiants2003-07-29 20:23:55 +0000
commit84d61d9cfc03ae0b68502014bf0624bb91078370 (patch)
treeaa53a58d4d62e5477b381d411c5f1ec186e69c12 /debug
parentd0c813b65326608bd91aaee07e975084e8df4e4f (diff)
downloadorg.eclipse.cdt-84d61d9cfc03ae0b68502014bf0624bb91078370.tar.gz
org.eclipse.cdt-84d61d9cfc03ae0b68502014bf0624bb91078370.tar.xz
org.eclipse.cdt-84d61d9cfc03ae0b68502014bf0624bb91078370.zip
Fix for PR 40911: Double clicking on breakpoint with no source causes internal error.
Diffstat (limited to 'debug')
-rw-r--r--debug/org.eclipse.cdt.debug.ui/ChangeLog4
-rw-r--r--debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java4
2 files changed, 7 insertions, 1 deletions
diff --git a/debug/org.eclipse.cdt.debug.ui/ChangeLog b/debug/org.eclipse.cdt.debug.ui/ChangeLog
index e967d15a083..e9412f00c50 100644
--- a/debug/org.eclipse.cdt.debug.ui/ChangeLog
+++ b/debug/org.eclipse.cdt.debug.ui/ChangeLog
@@ -1,3 +1,7 @@
+2003-07-29 Mikhail Khodjaiants
+ Fix for PR 40911: Double clicking on breakpoint with no source causes internal error.
+ * CDTDebugModelPresentation.java: check if the resource associated with breakpoint is a file.
+
2003-07-28 Mikhail Khodjaiants
Minimize the number of the "evaluate expression" requests when changing the value of the floating point types.
* CDTDebugModelPresentation.java
diff --git a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java
index ff2742d4605..3851e9fc5d4 100644
--- a/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java
+++ b/debug/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java
@@ -158,7 +158,9 @@ public class CDTDebugModelPresentation extends LabelProvider
}
if ( element instanceof ICLineBreakpoint )
{
- return new FileEditorInput( (IFile)((ICLineBreakpoint)element).getMarker().getResource().getAdapter( IFile.class ) );
+ IFile file = (IFile)((ICLineBreakpoint)element).getMarker().getResource().getAdapter( IFile.class );
+ if ( file != null )
+ return new FileEditorInput( file );
}
if ( element instanceof FileStorage )
{

Back to the top