Commit f7bda4fe authored by Aaron Leventhal's avatar Aaron Leventhal Committed by Commit Bot

Null check

Bug: 1096515
Change-Id: I753e4d934b6c92d24f7b4276fc5fa9b716b45ffc
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2252418
Auto-Submit: Aaron Leventhal <aleventhal@chromium.org>
Commit-Queue: Dominic Mazzoni <dmazzoni@chromium.org>
Reviewed-by: default avatarDominic Mazzoni <dmazzoni@chromium.org>
Cr-Commit-Position: refs/heads/master@{#779946}
parent 431ead7f
...@@ -171,7 +171,7 @@ AXObject* AXNodeObject::ActiveDescendant() { ...@@ -171,7 +171,7 @@ AXObject* AXNodeObject::ActiveDescendant() {
return nullptr; return nullptr;
AXObject* ax_descendant = AXObjectCache().GetOrCreate(descendant); AXObject* ax_descendant = AXObjectCache().GetOrCreate(descendant);
return ax_descendant->IsVisible() ? ax_descendant : nullptr; return ax_descendant && ax_descendant->IsVisible() ? ax_descendant : nullptr;
} }
AXObjectInclusion AXNodeObject::ShouldIncludeBasedOnSemantics( AXObjectInclusion AXNodeObject::ShouldIncludeBasedOnSemantics(
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment