diff options
author | Benjamin Otte <otte@gnome.org> | 2009-08-08 05:14:19 +0800 |
---|---|---|
committer | Benjamin Otte <otte@gnome.org> | 2009-08-08 05:15:03 +0800 |
commit | ef9a1019e28b10d5d71208f667dc950d50b10868 (patch) | |
tree | 6280c227f050114d99516200c5df557a6d6dee9d /embed | |
parent | be97edc964a415f4737b35fd9569c0e1bd55c633 (diff) | |
download | gsoc2013-epiphany-ef9a1019e28b10d5d71208f667dc950d50b10868.tar gsoc2013-epiphany-ef9a1019e28b10d5d71208f667dc950d50b10868.tar.gz gsoc2013-epiphany-ef9a1019e28b10d5d71208f667dc950d50b10868.tar.bz2 gsoc2013-epiphany-ef9a1019e28b10d5d71208f667dc950d50b10868.tar.lz gsoc2013-epiphany-ef9a1019e28b10d5d71208f667dc950d50b10868.tar.xz gsoc2013-epiphany-ef9a1019e28b10d5d71208f667dc950d50b10868.tar.zst gsoc2013-epiphany-ef9a1019e28b10d5d71208f667dc950d50b10868.zip |
Add NULL-check as the returned item can be NULL
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-web-view.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/embed/ephy-web-view.c b/embed/ephy-web-view.c index 2f6c16935..db11f1f07 100644 --- a/embed/ephy-web-view.c +++ b/embed/ephy-web-view.c @@ -1110,7 +1110,8 @@ ephy_web_view_copy_back_history (EphyWebView *source, /* The ephy/gecko behavior is to add the current item of the source embed at the end of the back history, so keep doing that */ item = webkit_web_back_forward_list_get_current_item (source_bflist); - webkit_web_back_forward_list_add_item (dest_bflist, item); + if (item) + webkit_web_back_forward_list_add_item (dest_bflist, item); } void |