Index: Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp |
=================================================================== |
--- Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp (revision 127631) |
+++ Source/WebKit/win/WebCoreSupport/WebFrameLoaderClient.cpp (working copy) |
@@ -885,8 +885,7 @@ |
void WebFrameLoaderClient::redirectDataToPlugin(Widget* pluginWidget) |
{ |
// Ideally, this function shouldn't be necessary, see <rdar://problem/4852889> |
- |
- if (pluginWidget->isPluginView()) |
+ if (!pluginWidget || pluginWidget->isPluginView()) |
m_manualLoader = static_cast<PluginView*>(pluginWidget); |
else |
m_manualLoader = static_cast<EmbeddedWidget*>(pluginWidget); |