mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-01 05:48:26 +00:00
Bug 1717501 - Null check attributes in MacUtils::GetAccAttr. r=morgan a=RyanVM
Differential Revision: https://phabricator.services.mozilla.com/D138475
This commit is contained in:
parent
b4f41ee536
commit
367bd1bc13
@ -71,6 +71,10 @@ NSString* GetAccAttr(mozAccessible* aNativeAccessible, nsAtom* aAttrName) {
|
||||
proxy->Attributes(&attributes);
|
||||
}
|
||||
|
||||
if (!attributes) {
|
||||
return nil;
|
||||
}
|
||||
|
||||
attributes->GetAttribute(aAttrName, result);
|
||||
|
||||
if (!result.IsEmpty()) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user