bug 130894, add null checks to avoid crashes found by js debugger users.

r=caillon@returnzero.com, sr=ben, a=asa


git-svn-id: svn://10.0.0.236/trunk@116801 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
rginda%netscape.com
2002-03-18 23:39:48 +00:00
parent 36d558c714
commit e0a5449d5d
2 changed files with 8 additions and 0 deletions

View File

@@ -918,6 +918,12 @@ nsMenuFrame::OpenMenuInternal(PRBool aActivateFlag)
void
nsMenuFrame::GetMenuChildrenElement(nsIContent** aResult)
{
if (!mContent)
{
*aResult = nsnull;
return;
}
nsresult rv;
nsCOMPtr<nsIXBLService> xblService =
do_GetService("@mozilla.org/xbl;1", &rv);