mirror of
https://github.com/varun-r-mallya/sysprof.git
synced 2026-02-12 08:00:53 +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);
|
item = g_list_model_get_item (self->model, position);
|
||||||
|
|
||||||
|
if (item == NULL)
|
||||||
|
return NULL;
|
||||||
|
|
||||||
if (SYSPROF_SERIES_GET_CLASS (self)->get_series_item == NULL)
|
if (SYSPROF_SERIES_GET_CLASS (self)->get_series_item == NULL)
|
||||||
return item;
|
return item;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user