1
0
Fork 0
mirror of https://gitlab.gnome.org/GNOME/calls.git synced 2024-11-13 03:51:17 +00:00

mm-origin: Don't crash when Modem has no location services

When no locationservice is available the API can return `NULL` without
setting an error.

Closes: https://gitlab.gnome.org/GNOME/calls/-/issues/641
(cherry picked from commit 34b68ec082)

Part-of: <https://gitlab.gnome.org/GNOME/calls/-/merge_requests/736>
This commit is contained in:
Guido Günther 2024-04-24 16:44:00 +02:00 committed by Marge Bot
parent e5532b9552
commit 672d523931

View file

@ -652,7 +652,8 @@ on_modem_location_get_3gpp_finish (GObject *source_object, GAsyncResult *res, gp
location_3gpp = mm_modem_location_get_3gpp_finish (location, res, &err);
if (!location_3gpp) {
g_warning ("Failed to get 3gpp location service: %s", err->message);
if (err)
g_warning ("Failed to get 3gpp location service: %s", err->message);
return;
}