null check to prevent crash reported by a few 0.2 talkbacks

git-svn-id: svn://10.0.0.236/trunk@131018 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
hewitt%netscape.com 2002-10-02 19:59:08 +00:00
parent f505719979
commit d71c9f4edb

View File

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