WebContentsImpl* wc = static_cast<WebContentsImpl*>(web_contents_);
WebContentsViewAura* wcva =
static_cast<WebContentsViewAura*>(wc->GetView());
- wcva->wcva_helper()->OnSelectionRectReceived(selection_rect);
+ if (wcva->wcva_helper()) {
+ wcva->wcva_helper()->OnSelectionRectReceived(selection_rect);
+ }
}
}
WebContentsImpl* wc = static_cast<WebContentsImpl*>(web_contents_);
WebContentsViewAura* wcva =
static_cast<WebContentsViewAura*>(wc->GetView());
- wcva->wcva_helper()->OnOverscrolled(params.accumulated_overscroll,
- params.latest_overscroll_delta);
+ if (wcva->wcva_helper()) {
+ wcva->wcva_helper()->OnOverscrolled(params.accumulated_overscroll,
+ params.latest_overscroll_delta);
+ }
}
}