Commit 01ee897d authored by Allan Sandfeld Jensen's avatar Allan Sandfeld Jensen
Browse files

Protect against null adapter client


Task-number: QTBUG-67653
Change-Id: I07c9dca788ee31f691b05f7647ffbf3f9e0b7260
Reviewed-by: default avatarMichal Klocek <michal.klocek@qt.io>
Reviewed-by: default avatarViktor Engelmann <viktor.engelmann@qt.io>
Showing with 7 additions and 3 deletions
...@@ -704,8 +704,11 @@ void RenderWidgetHostViewQt::ImeCompositionRangeChanged(const gfx::Range&, const ...@@ -704,8 +704,11 @@ void RenderWidgetHostViewQt::ImeCompositionRangeChanged(const gfx::Range&, const
void RenderWidgetHostViewQt::RenderProcessGone(base::TerminationStatus terminationStatus, void RenderWidgetHostViewQt::RenderProcessGone(base::TerminationStatus terminationStatus,
int exitCode) int exitCode)
{ {
m_adapterClient->renderProcessTerminated( if (m_adapterClient) {
m_adapterClient->renderProcessExitStatus(terminationStatus), exitCode); m_adapterClient->renderProcessTerminated(
m_adapterClient->renderProcessExitStatus(terminationStatus),
exitCode);
}
Destroy(); Destroy();
} }
...@@ -716,7 +719,8 @@ void RenderWidgetHostViewQt::Destroy() ...@@ -716,7 +719,8 @@ void RenderWidgetHostViewQt::Destroy()
void RenderWidgetHostViewQt::SetTooltipText(const base::string16 &tooltip_text) void RenderWidgetHostViewQt::SetTooltipText(const base::string16 &tooltip_text)
{ {
m_adapterClient->setToolTip(toQt(tooltip_text)); if (m_adapterClient)
m_adapterClient->setToolTip(toQt(tooltip_text));
} }
bool RenderWidgetHostViewQt::HasAcceleratedSurface(const gfx::Size&) bool RenderWidgetHostViewQt::HasAcceleratedSurface(const gfx::Size&)
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment