diff options
author | Christian Persch <chpe@src.gnome.org> | 2008-07-01 02:21:41 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2008-07-01 02:21:41 +0800 |
commit | bb778446f097fee45deb9d3fc1206461556abb6b (patch) | |
tree | dd87346748d3747653001322b75e3e4e86739b46 /embed/mozilla/EphyBrowser.cpp | |
parent | 2af6b3ce9a17ad12d461a7342b6dd6bace06bb0a (diff) | |
download | gsoc2013-epiphany-bb778446f097fee45deb9d3fc1206461556abb6b.tar gsoc2013-epiphany-bb778446f097fee45deb9d3fc1206461556abb6b.tar.gz gsoc2013-epiphany-bb778446f097fee45deb9d3fc1206461556abb6b.tar.bz2 gsoc2013-epiphany-bb778446f097fee45deb9d3fc1206461556abb6b.tar.lz gsoc2013-epiphany-bb778446f097fee45deb9d3fc1206461556abb6b.tar.xz gsoc2013-epiphany-bb778446f097fee45deb9d3fc1206461556abb6b.tar.zst gsoc2013-epiphany-bb778446f097fee45deb9d3fc1206461556abb6b.zip |
Add emergency NULL-check.
svn path=/branches/gnome-2-22/; revision=8318
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r-- | embed/mozilla/EphyBrowser.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp index c83e60d88..3d9d8b443 100644 --- a/embed/mozilla/EphyBrowser.cpp +++ b/embed/mozilla/EphyBrowser.cpp @@ -366,6 +366,7 @@ EphyDOMLinkEventListener::HandleEvent (nsIDOMEvent* aDOMEvent) NS_ENSURE_SUCCESS (rv, NS_ERROR_FAILURE); if (decision != nsIContentPolicy::ACCEPT) return NS_OK; + NS_ENSURE_TRUE (mOwner->mFixup, NS_OK); nsCOMPtr<nsIURI> exposableURI; rv = mOwner->mFixup->CreateExposableURI (favUri, getter_AddRefs (exposableURI)); NS_ENSURE_SUCCESS (rv, rv); |