diff options
Diffstat (limited to 'embed/ephy-web-view.c')
-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 |