diff options
Diffstat (limited to 'WebCore/editing/gtk/SelectionControllerGtk.cpp')
-rw-r--r-- | WebCore/editing/gtk/SelectionControllerGtk.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/WebCore/editing/gtk/SelectionControllerGtk.cpp b/WebCore/editing/gtk/SelectionControllerGtk.cpp index 6a3258a..9d52c1a 100644 --- a/WebCore/editing/gtk/SelectionControllerGtk.cpp +++ b/WebCore/editing/gtk/SelectionControllerGtk.cpp @@ -33,6 +33,11 @@ void SelectionController::notifyAccessibilityForSelectionChange() if (AXObjectCache::accessibilityEnabled() && m_selection.start().isNotNull() && m_selection.end().isNotNull()) { RenderObject* focusedNode = m_selection.end().node()->renderer(); AccessibilityObject* accessibilityObject = m_frame->document()->axObjectCache()->getOrCreate(focusedNode); + + // need to check this as getOrCreate could return 0 + if (!accessibilityObject) + return; + int offset; // Always report the events w.r.t. the non-linked unignored parent. (i.e. ignoreLinks == true) AccessibilityObject* object = objectAndOffsetUnignored(accessibilityObject, offset, true); |