null check to prevent crash reported by a few 0.2 talkbacks

This commit is contained in:
hewitt%netscape.com 2002-10-02 19:59:08 +00:00
Родитель a0d20b1e0f
Коммит 8d61b84fe4
1 изменённых файлов: 3 добавлений и 0 удалений

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

@ -556,6 +556,9 @@ nsFormFillController::AddFocusListener(nsIDOMWindow *aWindow)
void
nsFormFillController::RemoveFocusListener(nsIDOMWindow *aWindow)
{
if (!aWindow)
return;
StopControllingInput();
nsCOMPtr<nsPIDOMWindow> privateDOMWindow(do_QueryInterface(aWindow));