From: Nickolay V. Shmyrev Date: Fri, 25 May 2007 17:09:14 +0000 (+0000) Subject: Check if history is NULL X-Git-Tag: EVINCE_0_9_1~25 X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=commitdiff_plain;h=ab01c765c4ebb57906bfd8cad8b48d63d1278d90;p=evince.git 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 --- 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);