]> www.fi.muni.cz Git - evince.git/commitdiff
Check if history is NULL
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>
Fri, 25 May 2007 17:09:14 +0000 (17:09 +0000)
committerNickolay V. Shmyrev <nshmyrev@src.gnome.org>
Fri, 25 May 2007 17:09:14 +0000 (17:09 +0000)
2007-05-25  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>

* shell/ev-window.c: (ev_window_add_history):

Check if history is NULL

svn path=/trunk/; revision=2479

ChangeLog
shell/ev-window.c

index eebc0bcd803d5591af22f50440859acde771c8a3..f597624364dabcb7b9b7c1c9ac9a1983dbfa941a 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-05-25  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * shell/ev-window.c: (ev_window_add_history):
+
+       Check if history is NULL
+
 2007-05-25  Carlos Garcia Campos  <carlosgc@gnome.org>
 
        * libdocument/ev-image.c: (ev_image_finalize):
index 48d9b2a2b7b7ac37df06040b1d20af361b472b27..d48e4c0019679af8c24c90981df4d4944c94b975 100644 (file)
@@ -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);