diff --git a/accessible/atk/AccessibleWrap.cpp b/accessible/atk/AccessibleWrap.cpp index 06147a2cc373..7c20dc149220 100644 --- a/accessible/atk/AccessibleWrap.cpp +++ b/accessible/atk/AccessibleWrap.cpp @@ -636,6 +636,10 @@ AtkRole getRoleCB(AtkObject* aAtkObj) { } static AtkAttributeSet* ConvertToAtkAttributeSet(AccAttributes* aAttributes) { + if (!aAttributes) { + return nullptr; + } + AtkAttributeSet* objAttributeSet = nullptr; for (auto iter : *aAttributes) {