Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(480)

Unified Diff: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp

Issue 2072583002: Avoid calling AXObjectCacheImpl::isAriaOwned with null parameter (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2052783002
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
index c7bf66dbb301a94c2578a01f403415b9d08ae16d..50868815477b01840f22bce2fbdd11431c10a9ce 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXNodeObject.cpp
@@ -1878,7 +1878,7 @@ void AXNodeObject::addChildren()
for (Node& child : NodeTraversal::childrenOf(*m_node)) {
AXObject* childObj = axObjectCache().getOrCreate(&child);
- if (!axObjectCache().isAriaOwned(childObj))
+ if (childObj && !axObjectCache().isAriaOwned(childObj))
addChild(childObj);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698