aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyWrapper.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe+gnomebugz@stud.uni-saarland.de>2003-05-06 19:49:35 +0800
committerMarco Pesenti Gritti <mpeseng@src.gnome.org>2003-05-06 19:49:35 +0800
commit468c744c0c5efde0aa7bbc179bd0bba784c908a5 (patch)
tree80c6389c8d4c85d7948e15af107589c41b4da1c4 /embed/mozilla/EphyWrapper.cpp
parent0844abeea1ba193d4c9aa9afdbd9aaddba459d17 (diff)
downloadgsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar.gz
gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.tar.zst
gsoc2013-epiphany-468c744c0c5efde0aa7bbc179bd0bba784c908a5.zip
Check for NULL PresContext.
2003-05-06 Christian Persch <chpe+gnomebugz@stud.uni-saarland.de> * embed/mozilla/EphyWrapper.cpp: (EphyWrapper::SetZoomOnDocshell): Check for NULL PresContext.
Diffstat (limited to 'embed/mozilla/EphyWrapper.cpp')
-rw-r--r--embed/mozilla/EphyWrapper.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/embed/mozilla/EphyWrapper.cpp b/embed/mozilla/EphyWrapper.cpp
index b5ae3a24a..7268c4a69 100644
--- a/embed/mozilla/EphyWrapper.cpp
+++ b/embed/mozilla/EphyWrapper.cpp
@@ -356,7 +356,7 @@ nsresult EphyWrapper::SetZoomOnDocshell (float aZoom, nsIDocShell *DocShell)
nsCOMPtr<nsIPresContext> PresContext;
result = DocShell->GetPresContext (getter_AddRefs(PresContext));
- if (NS_FAILED(result)) return NS_ERROR_FAILURE;
+ if (NS_FAILED(result) || !PresContext) return NS_ERROR_FAILURE;
nsCOMPtr<nsIDeviceContext> DeviceContext;
result = PresContext->GetDeviceContext (getter_AddRefs(DeviceContext));