bulletproofing fix for topcrasher #104878.

r/sr=hyatt,sfraser.
This commit is contained in:
sspitzer%netscape.com 2001-10-19 01:32:46 +00:00
Родитель 11eba1b01f
Коммит b05b31f948
2 изменённых файлов: 8 добавлений и 0 удалений

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

@ -531,6 +531,10 @@ nsOutlinerBodyFrame::SetFocused(PRBool aFocused)
NS_IMETHODIMP
nsOutlinerBodyFrame::GetOutlinerBody(nsIDOMElement** aElement)
{
NS_ASSERTION(mContent, "no content, see bug #104878");
if (!mContent)
return NS_ERROR_NULL_POINTER;
return mContent->QueryInterface(NS_GET_IID(nsIDOMElement), (void**)aElement);
}

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

@ -531,6 +531,10 @@ nsOutlinerBodyFrame::SetFocused(PRBool aFocused)
NS_IMETHODIMP
nsOutlinerBodyFrame::GetOutlinerBody(nsIDOMElement** aElement)
{
NS_ASSERTION(mContent, "no content, see bug #104878");
if (!mContent)
return NS_ERROR_NULL_POINTER;
return mContent->QueryInterface(NS_GET_IID(nsIDOMElement), (void**)aElement);
}