X-Git-Url: https://www.fi.muni.cz/~kas/git//home/kas/public_html/git/?a=blobdiff_plain;f=shell%2Fev-window.c;h=722c8716eb958da7975a223ecb150f9cd72bf155;hb=57df208de1acaf93c60bd8401ec72a7d39f6ad9a;hp=d8cd629ad21f75ff1e98abd1f3452965b25a31b0;hpb=c6a200897a5fa91ed6585d1bc910234fdd8015a1;p=evince.git diff --git a/shell/ev-window.c b/shell/ev-window.c index d8cd629a..722c8716 100644 --- a/shell/ev-window.c +++ b/shell/ev-window.c @@ -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));