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

Bug 324456

Summary: edc - disassembly - ARM - avoid NPE in RangeAndMode#toString()
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: trivial    
Priority: P3    
Version: 7.0   
Target Milestone: ---   
Hardware: All   
OS: SymbianOS S60   
Whiteboard:
Attachments:
Description Flags
fix RangeAndMode#toString() to check startAddress & endAddress for null before dereferencing, output "null" if null cdtdoug: iplog+

Description Kirk Beitz CLA 2010-09-03 13:18:40 EDT
Created attachment 178177 [details]
fix RangeAndMode#toString() to check startAddress & endAddress for null before dereferencing, output "null" if null

during a debugger session, the smart-formatting of RangeAndMode was failing at times because the startAddress or endAddress values were legitimately null for a short time.

the attached patch modifies toString() to take into account null pointers for these values and formats the string to return appropriately.

this could result in more serious NPE if RangeAndMode#toString() is used for purposes other than smart-formatting and no catch-block exists (as appears to be the case for smart-formatting).
Comment 1 Kirk Beitz CLA 2010-09-16 05:01:33 EDT
committed by Ken Ryall on 9/10/2010, to RangeAndMode.java 1.3