Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[cdt-patch] Fix for PR 40911: Double clicking on breakpoint with no source causes internal error

Index: ChangeLog
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/ChangeLog,v
retrieving revision 1.174
diff -u -r1.174 ChangeLog
--- ChangeLog 28 Jul 2003 21:39:57 -0000 1.174
+++ ChangeLog 29 Jul 2003 20:22:13 -0000
@@ -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
Index: src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java
===================================================================
RCS file: /home/tools/org.eclipse.cdt.debug.ui/src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java,v
retrieving revision 1.68
diff -u -r1.68 CDTDebugModelPresentation.java
--- src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java 28 Jul 2003 21:39:57 -0000 1.68
+++ src/org/eclipse/cdt/debug/internal/ui/CDTDebugModelPresentation.java 29 Jul 2003 20:22:16 -0000
@@ -158,7 +158,9 @@
   }
   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