summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/newtabpage.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/newtabpage.cpp b/src/newtabpage.cpp
index f1cddc5e..ba0c37ce 100644
--- a/src/newtabpage.cpp
+++ b/src/newtabpage.cpp
@@ -122,6 +122,9 @@ void NewTabPage::generate(const KUrl &url)
return;
}
+ // webFrame can be null. See bug:282092
+ if (!m_root.webFrame())
+ return;
WebPage *page = qobject_cast <WebPage *>(m_root.webFrame()->page());
page->mainFrame()->setHtml(m_html);
page->setIsOnRekonqPage(true);