From 4ded5c390d06ce892fc1f96296c894464ef436c0 Mon Sep 17 00:00:00 2001 From: "saari%netscape.com" Date: Fri, 17 Aug 2001 02:30:22 +0000 Subject: [PATCH] Fix for bug 82569, a simple null check to patch over a crash some people are seeing from talkback. r=blake, sr=jst --- dom/src/base/nsFocusController.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dom/src/base/nsFocusController.cpp b/dom/src/base/nsFocusController.cpp index 424e45c67b8a..147b8a25f72b 100644 --- a/dom/src/base/nsFocusController.cpp +++ b/dom/src/base/nsFocusController.cpp @@ -132,7 +132,8 @@ nsFocusController::UpdateCommands(const nsAReadableString& aEventName) doc->GetScriptGlobalObject(getter_AddRefs(global)); nsCOMPtr window(do_QueryInterface(global)); - window->UpdateCommands(aEventName); + if (window) + window->UpdateCommands(aEventName); } } return NS_OK;