diff --git a/accessible/src/base/nsDocAccessible.cpp b/accessible/src/base/nsDocAccessible.cpp index df044947612..330b383eed3 100644 --- a/accessible/src/base/nsDocAccessible.cpp +++ b/accessible/src/base/nsDocAccessible.cpp @@ -994,6 +994,9 @@ void nsDocAccessible::HandleMutationEvent(nsIDOMEvent *aEvent, PRUint32 aAccessi nsCOMPtr docAccessible; GetEventDocAccessible(subTreeToInvalidate, getter_AddRefs(docAccessible)); + if (!docAccessible) + return; + nsCOMPtr privateDocAccessible = do_QueryInterface(docAccessible);