1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-06-09 02:36:01 +02:00

Fix for PR 40911: Double clicking on breakpoint with no source causes internal error.

This commit is contained in:
Mikhail Khodjaiants 2003-07-29 20:23:55 +00:00
parent d0c813b653
commit 84d61d9cfc
2 changed files with 7 additions and 1 deletions

View file

@ -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 2003-07-28 Mikhail Khodjaiants
Minimize the number of the "evaluate expression" requests when changing the value of the floating point types. Minimize the number of the "evaluate expression" requests when changing the value of the floating point types.
* CDTDebugModelPresentation.java * CDTDebugModelPresentation.java

View file

@ -158,7 +158,9 @@ public class CDTDebugModelPresentation extends LabelProvider
} }
if ( element instanceof ICLineBreakpoint ) 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 ) if ( element instanceof FileStorage )
{ {