Index: Source/web/WebPluginContainerImpl.cpp |
diff --git a/Source/web/WebPluginContainerImpl.cpp b/Source/web/WebPluginContainerImpl.cpp |
index 8d88aba837331affc9cfa8fd49165dfa11904f73..0fcc285e3fa243f2647642735669c58e90715caa 100644 |
--- a/Source/web/WebPluginContainerImpl.cpp |
+++ b/Source/web/WebPluginContainerImpl.cpp |
@@ -518,7 +518,7 @@ void WebPluginContainerImpl::zoomLevelChanged(double zoomLevel) |
bool WebPluginContainerImpl::isRectTopmost(const WebRect& rect) |
{ |
- if (m_element->document().isDetached()) |
+ if (!m_element || m_element->document().isDetached()) |
return false; |
LocalFrame* frame = m_element->document().frame(); |