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
Родитель 5006389b43
Коммит 7bf5f260f4
1 изменённых файлов: 4 добавлений и 1 удалений

Просмотреть файл

@ -70,7 +70,10 @@ TextUpdater::DoUpdate(const nsAString& aNewText, const nsAString& aOldText,
PRUint32 aSkipStart) PRUint32 aSkipStart)
{ {
nsAccessible* parent = mTextLeaf->GetParent(); 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(); mHyperText = parent->AsHyperText();
if (!mHyperText) { if (!mHyperText) {