bug 243809 M17rc2 mozilla crash at [@ nsHTMLEditor::CheckSelectionStateForAnonymousButtons]

r = daniel
sr= jst
This commit is contained in:
louie.zhao%sun.com 2004-05-24 02:55:40 +00:00
Родитель aed8a2d92d
Коммит ed51c7e0ea
1 изменённых файлов: 1 добавлений и 0 удалений

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

@ -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?