Bug 186643 del key at the end of the urlbar asserts

r=jfrancis sr=bz


git-svn-id: svn://10.0.0.236/trunk@136612 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
timeless%mozdev.org 2003-01-19 00:46:56 +00:00
parent 7cdf82e614
commit ce888ded2b

View File

@ -932,7 +932,7 @@ nsTextEditRules::WillDeleteSelection(nsISelection *aSelection,
}
// fix for bugzilla #125161: if we are about to forward delete a <BR>,
// make sure it is not last node in editfield. If it is, cancel deletion.
if ((aCollapsedAction == nsIEditor::eNext) && nsTextEditUtils::IsBreak(nextNode))
if (nextNode && (aCollapsedAction == nsIEditor::eNext) && nsTextEditUtils::IsBreak(nextNode))
{
nsCOMPtr<nsIDOMNode> lastChild;
if (!mBody) return NS_ERROR_NULL_POINTER;