Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 330952 - edc - LineEntry#toString() NPE fix
Summary: edc - LineEntry#toString() NPE fix
Status: RESOLVED FIXED
Alias: None
Product: CDT
Classification: Tools
Component: cdt-debug-edc (show other bugs)
Version: 7.0.1   Edit
Hardware: All All
: P3 minor (vote)
Target Milestone: 8.1.0   Edit
Assignee: Ken Ryall CLA
QA Contact: Ken Ryall CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-23 13:13 EST by Kirk Beitz CLA
Modified: 2012-02-23 11:33 EST (History)
3 users (show)

See Also:


Attachments
patch for LineEntry.java 1.6 to fix NPE that can occur in toString() (1.76 KB, text/plain)
2010-11-23 13:13 EST, Kirk Beitz CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
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.