aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@gnome.org>2003-12-02 03:16:28 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2003-12-02 03:16:28 +0800
commitd8d264d7179f735b546fc0b7c6cf6fa0031a983b (patch)
treef006b1f9aebfa82c8e65cbb1276285a88b5f7471 /embed/mozilla
parente605383e02c059c4dd7acc3e1d43fa90f93a3dd1 (diff)
downloadgsoc2013-epiphany-d8d264d7179f735b546fc0b7c6cf6fa0031a983b.tar
gsoc2013-epiphany-d8d264d7179f735b546fc0b7c6cf6fa0031a983b.tar.gz
gsoc2013-epiphany-d8d264d7179f735b546fc0b7c6cf6fa0031a983b.tar.bz2
gsoc2013-epiphany-d8d264d7179f735b546fc0b7c6cf6fa0031a983b.tar.lz
gsoc2013-epiphany-d8d264d7179f735b546fc0b7c6cf6fa0031a983b.tar.xz
gsoc2013-epiphany-d8d264d7179f735b546fc0b7c6cf6fa0031a983b.tar.zst
gsoc2013-epiphany-d8d264d7179f735b546fc0b7c6cf6fa0031a983b.zip
Handle case of get_location on an unrealized widget
2003-12-01 Marco Pesenti Gritti <marco@gnome.org> * embed/mozilla/mozilla-embed.cpp: Handle case of get_location on an unrealized widget
Diffstat (limited to 'embed/mozilla')
-rw-r--r--embed/mozilla/mozilla-embed.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/embed/mozilla/mozilla-embed.cpp b/embed/mozilla/mozilla-embed.cpp
index 1ebec735a..c031664af 100644
--- a/embed/mozilla/mozilla-embed.cpp
+++ b/embed/mozilla/mozilla-embed.cpp
@@ -513,6 +513,8 @@ impl_get_location (EphyEmbed *embed,
char *l;
nsresult rv;
nsCAutoString url;
+
+ if (mpriv->browser == NULL) return NULL;
if (toplevel)
{