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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user