зеркало из https://github.com/mozilla/gecko-dev.git
Adding a null check, Bug 384133, r=enn, sr=neil
This commit is contained in:
Родитель
2a48db112b
Коммит
ed0474a8f9
|
@ -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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче