core/shell-search-provider: Check for pending search
Now that GcalTimeline properly notifies about the complete state, it uncovered an issue where GcalShellSearchProvider was dereferencing a NULL pointer. Protect against that.
This commit is contained in:
@@ -315,6 +315,9 @@ on_timeline_completed_cb (GcalTimeline *timeline,
|
|||||||
|
|
||||||
GCAL_ENTRY;
|
GCAL_ENTRY;
|
||||||
|
|
||||||
|
if (!self->pending_search)
|
||||||
|
GCAL_RETURN ();
|
||||||
|
|
||||||
if (!gcal_timeline_is_complete (timeline))
|
if (!gcal_timeline_is_complete (timeline))
|
||||||
GCAL_RETURN ();
|
GCAL_RETURN ();
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user