Index: webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc |
=================================================================== |
--- webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (revision 96767) |
+++ webkit/gpu/webgraphicscontext3d_in_process_command_buffer_impl.cc (working copy) |
@@ -649,7 +649,7 @@ |
GLInProcessContext* parent_context = NULL; |
if (!render_directly_to_web_view) { |
WebKit::WebGraphicsContext3D* view_context = |
- web_view->graphicsContext3D(); |
+ web_view ? web_view->graphicsContext3D() : NULL; |
if (view_context) { |
WebGraphicsContext3DInProcessCommandBufferImpl* context_impl = |
static_cast<WebGraphicsContext3DInProcessCommandBufferImpl*>( |