From f2a97e6e1180f4c93f630a2e93cd3f8d629de4bc Mon Sep 17 00:00:00 2001 From: Morgan Reschenberg Date: Thu, 15 Apr 2021 17:30:43 +0000 Subject: [PATCH] Bug 1538991: Verify parent exists before calling ReorderEventTarget r=eeejay Differential Revision: https://phabricator.services.mozilla.com/D112205 --- accessible/base/NotificationController.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/accessible/base/NotificationController.cpp b/accessible/base/NotificationController.cpp index 125c57df4ad2..5a54426dabb9 100644 --- a/accessible/base/NotificationController.cpp +++ b/accessible/base/NotificationController.cpp @@ -331,7 +331,7 @@ void NotificationController::CoalesceMutationEvents() { } LocalAccessible* parent = acc->LocalParent(); - if (parent->ReorderEventTarget()) { + if (parent && parent->ReorderEventTarget()) { AccReorderEvent* reorder = downcast_accEvent( mMutationMap.GetEvent(parent, EventMap::ReorderEvent));