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

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

Issue 1868173003: Add null check to m_layoutObject->parent() in AXLayoutObject.cpp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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/AXLayoutObject.cpp
diff --git a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
index 94146e98fce06d2f5a5863fd91bd5de8757fe8e1..88e1c454e2652982829aa2425fc31b51b6c7f31c 100644
--- a/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
+++ b/third_party/WebKit/Source/modules/accessibility/AXLayoutObject.cpp
@@ -1617,7 +1617,7 @@ AXObject* AXLayoutObject::rawNextSibling() const
// Case 4: node is an inline with a continuation. Next sibling is the next sibling of the end
// of the continuation chain.
nextSibling = endOfContinuations(m_layoutObject)->nextSibling();
- } else if (isInlineWithContinuation(m_layoutObject->parent())) {
+ } else if (m_layoutObject->parent() && isInlineWithContinuation(m_layoutObject->parent())) {
// Case 5: node has no next sibling, and its parent is an inline with a continuation.
LayoutObject* continuation = toLayoutInline(m_layoutObject->parent())->continuation();
« 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