sysprof/series: guard against invalid item

This commit is contained in:
Christian Hergert
2024-11-25 16:43:33 -08:00
parent a8aeac135d
commit 2ea689c299

View File

@ -58,6 +58,9 @@ sysprof_series_get_item (GListModel *model,
item = g_list_model_get_item (self->model, position);
if (item == NULL)
return NULL;
if (SYSPROF_SERIES_GET_CLASS (self)->get_series_item == NULL)
return item;