summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gtk/inspector/recorder.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gtk/inspector/recorder.c b/gtk/inspector/recorder.c
index 5b6452f340..c8042ca580 100644
--- a/gtk/inspector/recorder.c
+++ b/gtk/inspector/recorder.c
@@ -404,6 +404,9 @@ recordings_list_row_selected (GtkListBox *box,
{
GtkInspectorRecording *recording;
+ if (recorder->recordings == NULL)
+ return;
+
if (row)
recording = g_list_model_get_item (recorder->recordings, gtk_list_box_row_get_index (row));
else