From ef9a1019e28b10d5d71208f667dc950d50b10868 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Fri, 7 Aug 2009 23:14:19 +0200 Subject: Add NULL-check as the returned item can be NULL --- embed/ephy-web-view.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 -- cgit