From 46a42fdc0ff2f7acd14b4342969efd6dbb44c412 Mon Sep 17 00:00:00 2001 From: "louie.zhao%sun.com" Date: Mon, 24 May 2004 02:55:40 +0000 Subject: [PATCH] bug 243809 M17rc2 mozilla crash at [@ nsHTMLEditor::CheckSelectionStateForAnonymousButtons] r = daniel sr= jst git-svn-id: svn://10.0.0.236/trunk@156822 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/editor/libeditor/html/nsHTMLAnonymousUtils.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/mozilla/editor/libeditor/html/nsHTMLAnonymousUtils.cpp b/mozilla/editor/libeditor/html/nsHTMLAnonymousUtils.cpp index 7c19b89030c..526aa6c67e4 100644 --- a/mozilla/editor/libeditor/html/nsHTMLAnonymousUtils.cpp +++ b/mozilla/editor/libeditor/html/nsHTMLAnonymousUtils.cpp @@ -203,6 +203,7 @@ nsHTMLEditor::CheckSelectionStateForAnonymousButtons(nsISelection * aSelection) nsCOMPtr focusElement; // let's get the containing element of the selection nsresult res = GetSelectionContainer(getter_AddRefs(focusElement)); + if (!focusElement) return NS_OK; if (NS_FAILED(res)) return res; // what's its tag?