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:
Georges Basile Stavracas Neto
2023-08-23 11:19:10 -03:00
parent b32353e0ed
commit ef1f154c7a
+3
View File
@@ -315,6 +315,9 @@ on_timeline_completed_cb (GcalTimeline *timeline,
GCAL_ENTRY;
if (!self->pending_search)
GCAL_RETURN ();
if (!gcal_timeline_is_complete (timeline))
GCAL_RETURN ();