Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell/ev-window.c
diff options
context:
space:
mode:
Diffstat (limited to 'shell/ev-window.c')
-rw-r--r--shell/ev-window.c3
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);