From ce888ded2b8da4b539588a8a902ca4dfa94bd0d1 Mon Sep 17 00:00:00 2001 From: "timeless%mozdev.org" Date: Sun, 19 Jan 2003 00:46:56 +0000 Subject: [PATCH] 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 --- mozilla/editor/libeditor/text/nsTextEditRules.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mozilla/editor/libeditor/text/nsTextEditRules.cpp b/mozilla/editor/libeditor/text/nsTextEditRules.cpp index 6da76d17cb1..5c449fa6688 100644 --- a/mozilla/editor/libeditor/text/nsTextEditRules.cpp +++ b/mozilla/editor/libeditor/text/nsTextEditRules.cpp @@ -932,7 +932,7 @@ nsTextEditRules::WillDeleteSelection(nsISelection *aSelection, } // fix for bugzilla #125161: if we are about to forward delete a
, // 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 lastChild; if (!mBody) return NS_ERROR_NULL_POINTER;