| Index: ui/accessibility/platform/ax_platform_node_base.cc
|
| diff --git a/ui/accessibility/platform/ax_platform_node_base.cc b/ui/accessibility/platform/ax_platform_node_base.cc
|
| index a9d4c1f0bc2630a15cd1e532be84f79e689ddc7a..4937e4d317876f64573f982ae687bddeef132d16 100644
|
| --- a/ui/accessibility/platform/ax_platform_node_base.cc
|
| +++ b/ui/accessibility/platform/ax_platform_node_base.cc
|
| @@ -93,7 +93,10 @@ bool AXPlatformNodeBase::IsDescendant(AXPlatformNodeBase* node) {
|
| return false;
|
| if (node == this)
|
| return true;
|
| - AXPlatformNodeBase* parent = FromNativeViewAccessible(node->GetParent());
|
| + gfx::NativeViewAccessible native_parent = node->GetParent();
|
| + if (!native_parent)
|
| + return false;
|
| + AXPlatformNodeBase* parent = FromNativeViewAccessible(native_parent);
|
| return IsDescendant(parent);
|
| }
|
|
|
|
|