mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2025-12-31 20:36:25 +00:00
sysprof/series: guard against invalid item
This commit is contained in:
@ -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;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user