Bug 643906 - Firefox 4.0 Crash Report [@ nsAccessible::AsHyperText() ], r=davidb, a=blocking2.x+

This commit is contained in:
Alexander Surkov 2011-03-28 22:59:28 +09:00
parent 5dbb04e848
commit 74448264ac

View File

@ -70,7 +70,10 @@ TextUpdater::DoUpdate(const nsAString& aNewText, const nsAString& aOldText,
PRUint32 aSkipStart)
{
nsAccessible* parent = mTextLeaf->GetParent();
NS_ASSERTION(parent, "No parent for text leaf!");
if (!parent) {
NS_ERROR("No parent for text leaf!");
return;
}
mHyperText = parent->AsHyperText();
if (!mHyperText) {