summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/adblock/adblockmanager.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/adblock/adblockmanager.cpp b/src/adblock/adblockmanager.cpp
index 40e23d5f..7c0b94f2 100644
--- a/src/adblock/adblockmanager.cpp
+++ b/src/adblock/adblockmanager.cpp
@@ -207,6 +207,10 @@ QNetworkReply *AdBlockManager::block(const QNetworkRequest &request, WebPage *pa
return reply;
}
+ // get sure page is extant to perform elements check. bug:282012
+ if (!page)
+ return 0;
+
foreach(const AdBlockRule & filter, _blackList)
{
if (filter.match(request, urlString, urlStringLowerCase))