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

This commit is contained in:
Olli.Pettay@helsinki.fi 2007-06-14 01:18:11 -07:00
Родитель 2a48db112b
Коммит ed0474a8f9
1 изменённых файлов: 2 добавлений и 0 удалений

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

@ -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);