assertion fix for bug 429617 - Crash [@ nsAccessNode::ClearCacheEntry(void const*, nsCOMPtr<nsIAccessNode>&, void*) ]
authormarco.zehe@googlemail.com
Fri, 09 May 2008 23:25:06 -0700
changeset 15104 8d2b6627e199b24ca08846470a2d4606e6378698
parent 15103 4b0fd4528cac8676adecf1a53ea8e4849f396d08
child 15105 197a668fbeb642fbbf06aed3ff5b4dcf3364fc4b
push idunknown
push userunknown
push dateunknown
bugs429617
milestone1.9pre
assertion fix for bug 429617 - Crash [@ nsAccessNode::ClearCacheEntry(void const*, nsCOMPtr<nsIAccessNode>&, void*) ]
accessible/src/base/nsAccessNode.cpp
--- a/accessible/src/base/nsAccessNode.cpp
+++ b/accessible/src/base/nsAccessNode.cpp
@@ -789,17 +789,17 @@ nsAccessNode::GetCacheEntry(nsAccessNode
                             void* aUniqueID,
                             nsIAccessNode **aAccessNode)
 {
   aCache.Get(aUniqueID, aAccessNode);  // AddRefs for us
 }
 
 PLDHashOperator nsAccessNode::ClearCacheEntry(const void* aKey, nsCOMPtr<nsIAccessNode>& aAccessNode, void* aUserArg)
 {
-  NS_ASSERTION(!aAccessNode, "Calling ClearCacheEntry with a NULL pointer!");
+  NS_ASSERTION(aAccessNode, "Calling ClearCacheEntry with a NULL pointer!");
   if (aAccessNode) {
     nsCOMPtr<nsPIAccessNode> privateAccessNode(do_QueryInterface(aAccessNode));
     privateAccessNode->Shutdown();
   }
 
   return PL_DHASH_REMOVE;
 }