diff --git a/src/dialogs/dialog-recent.c b/src/dialogs/dialog-recent.c
index 5971257..bc42f9c 100644
--- a/src/dialogs/dialog-recent.c
+++ b/src/dialogs/dialog-recent.c
@@ -89,6 +89,8 @@ url_renderer_func (GtkTreeViewColumn *tree_column,
 
 	gtk_tree_model_get (model, iter, RECENT_COL_INFO, &ri, -1);
 
+	if (ri == NULL)
+		return;
 	uri = gtk_recent_info_get_uri (ri);
 	filename = go_filename_from_uri (uri);
 	if (filename) {
