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

This commit is contained in:
Olli Pettay
2009-05-07 09:27:31 +03:00
parent 770392fbdf
commit 09c9e727a8

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;