Bug 771983 - Re-add non-debug null check to nsEditor::GetNodeLocation; r=ehsan

This commit is contained in:
Aryeh Gregor 2012-07-10 09:53:59 +03:00
Родитель 6ef3102fab
Коммит 6e530b797a
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -3111,6 +3111,7 @@ already_AddRefed<nsIDOMNode>
nsEditor::GetNodeLocation(nsIDOMNode* aChild, PRInt32* outOffset)
{
MOZ_ASSERT(aChild && outOffset);
NS_ENSURE_TRUE(aChild && outOffset, nsnull);
*outOffset = -1;
nsCOMPtr<nsIDOMNode> parent;