aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/EphyBrowser.cpp
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2004-10-31 01:47:22 +0800
committerChristian Persch <chpe@src.gnome.org>2004-10-31 01:47:22 +0800
commitebddd6104b96e1da09e8f6375ef7707ff42ee447 (patch)
treee3bd35ded2ccc7d869434f4415726c770bf1f43b /embed/mozilla/EphyBrowser.cpp
parent96b61f1e2c50ce20423136738e1a3e0a9d7364dc (diff)
downloadgsoc2013-epiphany-ebddd6104b96e1da09e8f6375ef7707ff42ee447.tar
gsoc2013-epiphany-ebddd6104b96e1da09e8f6375ef7707ff42ee447.tar.gz
gsoc2013-epiphany-ebddd6104b96e1da09e8f6375ef7707ff42ee447.tar.bz2
gsoc2013-epiphany-ebddd6104b96e1da09e8f6375ef7707ff42ee447.tar.lz
gsoc2013-epiphany-ebddd6104b96e1da09e8f6375ef7707ff42ee447.tar.xz
gsoc2013-epiphany-ebddd6104b96e1da09e8f6375ef7707ff42ee447.tar.zst
gsoc2013-epiphany-ebddd6104b96e1da09e8f6375ef7707ff42ee447.zip
Add NULL check
Diffstat (limited to 'embed/mozilla/EphyBrowser.cpp')
-rw-r--r--embed/mozilla/EphyBrowser.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/embed/mozilla/EphyBrowser.cpp b/embed/mozilla/EphyBrowser.cpp
index efb8a80d2..da69e21b3 100644
--- a/embed/mozilla/EphyBrowser.cpp
+++ b/embed/mozilla/EphyBrowser.cpp
@@ -220,6 +220,7 @@ EphyModalAlertEventListener::HandleEvent (nsIDOMEvent * aDOMEvent)
/* make sure the event is trusted */
nsCOMPtr<nsIDOMNSEvent> nsEvent (do_QueryInterface (aDOMEvent));
+ NS_ENSURE_TRUE (nsEvent, NS_ERROR_FAILURE);
PRBool isTrusted = PR_FALSE;
nsEvent->GetIsTrusted (&isTrusted);
if (!isTrusted) return NS_OK;