Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 330952

Summary: edc - LineEntry#toString() NPE fix
Product: [Tools] CDT Reporter: Kirk Beitz <kirk.beitz>
Component: cdt-debug-edcAssignee: Ken Ryall <ken.ryall>
Status: RESOLVED FIXED QA Contact: Ken Ryall <ken.ryall>
Severity: minor    
Priority: P3 CC: cdtdoug, daniel.thomas, jamesblackburn+eclipse
Version: 7.0.1   
Target Milestone: 8.1.0   
Hardware: All   
OS: All   
Whiteboard:
Attachments:
Description Flags
patch for LineEntry.java 1.6 to fix NPE that can occur in toString() none

Description Kirk Beitz CLA 2010-11-23 13:13:41 EST
Created attachment 183693 [details]
patch for LineEntry.java 1.6 to fix NPE that can occur in toString()

there are times during LineEntry construction that lowAddress or highAddress may be null, and thus toString() fails (generally seen during debugging with a smart formatter enabled).  the attached patch fixes this.
Comment 1 Kirk Beitz CLA 2010-11-23 13:14:11 EST
minor issue, occurs only during debugging.  occurs on all platforms.
Comment 2 Daniel Thomas CLA 2011-08-30 10:08:10 EDT
Fixed in: http://git.eclipse.org/c/cdt/org.eclipse.cdt.edc.git/commit/?id=81fcc2f7c6e36bb7edbac22fe9e392ccbbc61187 (but I can't adjust the status on this bug)
Comment 3 James Blackburn CLA 2011-09-01 05:46:03 EDT
Fix committed by Ken.