diff options
-rw-r--r-- | chrome/browser/renderer_host/render_widget_host_view_gtk.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc index 2003428..3952e12 100644 --- a/chrome/browser/renderer_host/render_widget_host_view_gtk.cc +++ b/chrome/browser/renderer_host/render_widget_host_view_gtk.cc @@ -469,6 +469,9 @@ void RenderWidgetHostViewGtk::RequestSelectionText() { void RenderWidgetHostViewGtk::ReceivedSelectionText(GtkClipboard* clipboard, const gchar* text, gpointer userdata) { + // If there's nothing to paste (|text| is NULL), do nothing. + if (!text) + return; RenderWidgetHostViewGtk* host_view = reinterpret_cast<RenderWidgetHostViewGtk*>(userdata); host_view->host_->Send(new ViewMsg_InsertText(host_view->host_->routing_id(), |