summaryrefslogtreecommitdiff
path: root/src/mainview.cpp
diff options
context:
space:
mode:
authorBernhard Beschow <bbeschow@cs.tu-berlin.de>2009-12-09 22:23:10 +0100
committerBernhard Beschow <bbeschow@cs.tu-berlin.de>2009-12-09 22:31:14 +0100
commitf29cff909ea23b9ff064d30b405e6051d6af9ce1 (patch)
treea9a56fbfafb89fd37b096c4727670b3b0c0c9c39 /src/mainview.cpp
parentxss attach prevention. (diff)
downloadrekonq-f29cff909ea23b9ff064d30b405e6051d6af9ce1.tar.xz
do not crash when closing WebView that didn't load successfully
Diffstat (limited to 'src/mainview.cpp')
-rw-r--r--src/mainview.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/mainview.cpp b/src/mainview.cpp
index d190507e..4437936d 100644
--- a/src/mainview.cpp
+++ b/src/mainview.cpp
@@ -547,7 +547,7 @@ void MainView::webViewLoadFinished(bool ok)
// KWallet Integration
// TODO: Add check for sites exempt from automatic form filling...
- if (webView->page()->wallet())
+ if (webView && webView->page() && webView->page()->wallet())
{
webView->page()->wallet()->fillFormData(webView->page()->mainFrame());
}