Bug 489270 - Crash [@ GetPreviousWSNode], r+sr=peterv

--HG--
extra : rebase_source : d219264be4d548ce6063c9fbd95897188219731f
This commit is contained in:
Olli Pettay 2009-05-07 09:27:31 +03:00
parent 1ff97425c2
commit 6fa0681aee

View File

@ -1262,7 +1262,7 @@ nsWSRunObject::GetPreviousWSNode(nsIDOMNode *aStartNode,
}
nsCOMPtr<nsIContent> startContent( do_QueryInterface(aStartNode) );
NS_ENSURE_STATE(startContent);
nsIContent *priorContent = startContent->GetChildAt(aOffset - 1);
if (!priorContent)
return NS_ERROR_NULL_POINTER;