Bug 1717575 - Check given attributes for null before iterating. r=morgan, a=jcristau

Differential Revision: https://phabricator.services.mozilla.com/D119789
This commit is contained in:
Eitan Isaacson 2021-07-15 18:24:01 +00:00
parent 43d49c8c90
commit f27f579b00

View File

@ -636,6 +636,10 @@ AtkRole getRoleCB(AtkObject* aAtkObj) {
}
static AtkAttributeSet* ConvertToAtkAttributeSet(AccAttributes* aAttributes) {
if (!aAttributes) {
return nullptr;
}
AtkAttributeSet* objAttributeSet = nullptr;
for (auto iter : *aAttributes) {