diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/mozilla/EphyWrapper.cpp | 2 |
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)); |