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
This commit is contained in:
louie.zhao%sun.com
2004-05-24 02:55:40 +00:00
parent 10183d4483
commit 46a42fdc0f

View File

@@ -203,6 +203,7 @@ nsHTMLEditor::CheckSelectionStateForAnonymousButtons(nsISelection * aSelection)
nsCOMPtr<nsIDOMElement> 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?