From ab01c765c4ebb57906bfd8cad8b48d63d1278d90 Mon Sep 17 00:00:00 2001 From: "Nickolay V. Shmyrev" Date: Fri, 25 May 2007 17:09:14 +0000 Subject: [PATCH] Check if history is NULL 2007-05-25 Nickolay V. Shmyrev * shell/ev-window.c: (ev_window_add_history): Check if history is NULL svn path=/trunk/; revision=2479 --- ChangeLog | 6 ++++++ shell/ev-window.c | 3 +++ 2 files changed, 9 insertions(+) diff --git a/ChangeLog b/ChangeLog index eebc0bcd..f5976243 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-05-25 Nickolay V. Shmyrev + + * shell/ev-window.c: (ev_window_add_history): + + Check if history is NULL + 2007-05-25 Carlos Garcia Campos * libdocument/ev-image.c: (ev_image_finalize): diff --git a/shell/ev-window.c b/shell/ev-window.c index 48d9b2a2..d48e4c00 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -711,6 +711,9 @@ ev_window_add_history (EvWindow *window, gint page, EvLink *link) EvLinkAction *action; EvLinkDest *dest; + if (window->priv->history == NULL) + return; + if (link) { action = g_object_ref (ev_link_get_action (link)); dest = ev_link_action_get_dest (action); -- 2.43.5