]> www.fi.muni.cz Git - evince.git/commitdiff
Check if history is NULL
authorNickolay V. Shmyrev <nshmyrev@yandex.ru>
Sat, 9 Jun 2007 09:17:24 +0000 (09:17 +0000)
committerCarlos Garcia Campos <carlosgc@src.gnome.org>
Sat, 9 Jun 2007 09:17:24 +0000 (09:17 +0000)
2007-06-09  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
* shell/ev-window.c: (ev_window_add_history):
Check if history is NULL

svn path=/branches/gnome-2-18/; revision=2490

ChangeLog
shell/ev-window.c

index 6824ff980c16fe41289cd93fad0da71a2edce69a..d5e46c8983946d858527bd6e4391b6b6e20f342e 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2007-06-09  Nickolay V. Shmyrev  <nshmyrev@yandex.ru>
+
+       * shell/ev-window.c: (ev_window_add_history):
+
+       Check if history is NULL
+       
 2007-06-05  Bastien Nocera  <hadess@hadess.net>
 
        * shell/ev-metadata-manager.c: (ev_metadata_arm_timeout),
index d8cd629ad21f75ff1e98abd1f3452965b25a31b0..722c8716eb958da7975a223ecb150f9cd72bf155 100644 (file)
@@ -700,6 +700,9 @@ ev_window_add_history (EvWindow *window, gint page, EvLink *link)
        EvLink *real_link;
        EvLinkAction *action;
        EvLinkDest *dest;
+
+       if (window->priv->history == NULL)
+               return;
        
        if (link) {
                action = g_object_ref (ev_link_get_action (link));