Adding a null check, Bug 384133, r=enn, sr=neil

git-svn-id: svn://10.0.0.236/trunk@228038 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
Olli.Pettay%helsinki.fi
2007-06-14 08:18:11 +00:00
parent c7634ffc7c
commit 6ca375d76a

View File

@@ -118,6 +118,8 @@ nsPopupBoxObject::ShowPopup(nsIDOMElement* aSrcContent,
nsCOMPtr<nsIContent> srcContent(do_QueryInterface(aSrcContent));
nsCOMPtr<nsIContent> popupContent(do_QueryInterface(aPopupContent));
NS_ENSURE_TRUE(popupContent, NS_ERROR_INVALID_ARG);
// srcContent can be null.
nsAutoString popupType(aPopupType);
nsAutoString anchorAlign(anAnchorAlignment);