Fixing blocker bug 106474. Make nsAFlatString::GetReadableFragment() deal with a null buffer handles correctly. r=kin@netscape.com, sr=scc@mozilla.org
git-svn-id: svn://10.0.0.236/trunk@106189 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -33,7 +33,9 @@ nsAFlatString::GetReadableFragment( const_fragment_type& aFragment, nsFragmentRe
|
||||
case kFragmentAt:
|
||||
{
|
||||
const buffer_handle_type* buffer = GetBufferHandle();
|
||||
NS_ASSERTION(buffer, "trouble: no buffer!");
|
||||
|
||||
if ( !buffer )
|
||||
return 0;
|
||||
|
||||
aFragment.mEnd = buffer->DataEnd();
|
||||
return (aFragment.mStart = buffer->DataStart()) + aOffset;
|
||||
|
||||
Reference in New Issue
Block a user