diff --git a/rdf/content/src/nsXULKeyListener.cpp b/rdf/content/src/nsXULKeyListener.cpp index 901fabab3d0..2a89f9e2e24 100644 --- a/rdf/content/src/nsXULKeyListener.cpp +++ b/rdf/content/src/nsXULKeyListener.cpp @@ -1095,7 +1095,7 @@ NS_IMETHODIMP nsXULKeyListenerImpl::GetKeyBindingDocument(nsCAutoString& aURLStr nsCOMPtr supports; supports = NS_STATIC_CAST(nsISupports*, mKeyBindingTable->Get(&key)); - if (supports != mMissObject) { + if (supports.get() != mMissObject) { document = do_QueryInterface(supports); if (!document) { LoadKeyBindingDocument(uri, getter_AddRefs(document));