summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp b/Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
index 271fe58..ac5cd9d 100644
--- a/Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
+++ b/Source/WebKit/android/WebCoreSupport/FrameLoaderClientAndroid.cpp
@@ -422,7 +422,9 @@ void FrameLoaderClientAndroid::dispatchDidFirstLayout() {
// so that about:blank will update the screen.
if (!m_frame->tree()->parent()) {
// Only need to notify Java side for the top frame
- WebViewCore::getWebViewCore(m_frame->view())->didFirstLayout();
+ WebViewCore* core = WebViewCore::getWebViewCore(m_frame->view());
+ if (core)
+ core->didFirstLayout();
}
}