diff options
author | Christian Persch <chpe@src.gnome.org> | 2004-10-31 01:47:22 +0800 |
---|---|---|
committer | Christian Persch <chpe@src.gnome.org> | 2004-10-31 01:47:22 +0800 |
commit | ebddd6104b96e1da09e8f6375ef7707ff42ee447 (patch) | |
tree | e3bd35ded2ccc7d869434f4415726c770bf1f43b | |
parent | 96b61f1e2c50ce20423136738e1a3e0a9d7364dc (diff) | |
download | gsoc2013-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
-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 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; |