Fix for bug 82569, a simple null check to patch over a crash some people are seeing from talkback.

r=blake, sr=jst
This commit is contained in:
saari%netscape.com 2001-08-17 02:30:22 +00:00
parent e50ac3d520
commit 4ded5c390d

View File

@ -132,7 +132,8 @@ nsFocusController::UpdateCommands(const nsAReadableString& aEventName)
doc->GetScriptGlobalObject(getter_AddRefs(global));
nsCOMPtr<nsIDOMWindowInternal> window(do_QueryInterface(global));
window->UpdateCommands(aEventName);
if (window)
window->UpdateCommands(aEventName);
}
}
return NS_OK;