diff options
author | Nickolay V. Shmyrev <nshmyrev@yandex.ru> | 2007-05-25 17:09:14 (GMT) |
---|---|---|
committer | Nickolay V. Shmyrev <nshmyrev@src.gnome.org> | 2007-05-25 17:09:14 (GMT) |
commit | ab01c765c4ebb57906bfd8cad8b48d63d1278d90 (patch) | |
tree | b4cedaf4a809f81fc9edd27c49f0443e4cf70253 /shell | |
parent | 3588349bcec38d0915a8e1f0ea3949d683c4eb8c (diff) |
Check if history is NULL
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
Diffstat (limited to 'shell')
-rw-r--r-- | shell/ev-window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/shell/ev-window.c b/shell/ev-window.c index 48d9b2a..d48e4c0 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); |