From ab01c765c4ebb57906bfd8cad8b48d63d1278d90 Mon Sep 17 00:00:00 2001 From: Nickolay V. Shmyrev Date: Fri, 25 May 2007 17:09:14 +0000 Subject: 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 --- (limited to 'shell') 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); -- cgit v0.9.1