Community
Participate
Working Groups
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).
committed by Ken Ryall on 9/10/2010, to RangeAndMode.java 1.3