diff --git a/accessible/src/atk/nsMaiInterfaceDocument.cpp b/accessible/src/atk/nsMaiInterfaceDocument.cpp index a4b4925cb00..7e03673b26d 100644 --- a/accessible/src/atk/nsMaiInterfaceDocument.cpp +++ b/accessible/src/atk/nsMaiInterfaceDocument.cpp @@ -72,10 +72,10 @@ getDocumentLocaleCB(AtkDocument *aDocument) nsCOMPtr docAccessNode; accWrap->QueryInterface(NS_GET_IID(nsIAccessNode), getter_AddRefs(docAccessNode)); - NS_ENSURE_TRUE(accDocument, nsnull); + NS_ENSURE_TRUE(docAccessNode, nsnull); nsAutoString locale; - docAccessNode->GetLanguage(getter_AddRefs(locale)); + docAccessNode->GetLanguage(locale); if (locale.IsEmpty()) { return nsnull; }