aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-08-28 17:21:08 +0200
committerAleksander Morgado <aleksander@lanedo.com>2012-08-28 17:21:08 +0200
commit26e95b2d3c979bf35a49466a2b245a39da82fde0 (patch)
tree3985cff797672e21e7d19a8d4f73e81454fbdf64 /src
parent3ff03c946fb244bf336aebd61807b5ffa0b28124 (diff)
iface-modem-location: don't try to update anything if no skeleton available
Diffstat (limited to 'src')
-rw-r--r--src/mm-iface-modem-location.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/mm-iface-modem-location.c b/src/mm-iface-modem-location.c
index d2ba9401..b58f1e78 100644
--- a/src/mm-iface-modem-location.c
+++ b/src/mm-iface-modem-location.c
@@ -218,6 +218,8 @@ mm_iface_modem_location_gps_update (MMIfaceModemLocation *self,
g_object_get (self,
MM_IFACE_MODEM_LOCATION_DBUS_SKELETON, &skeleton,
NULL);
+ if (!skeleton)
+ return;
if (mm_gdbus_modem_location_get_enabled (skeleton) & MM_MODEM_LOCATION_SOURCE_GPS_NMEA) {
g_assert (ctx->location_gps_nmea != NULL);
@@ -286,6 +288,8 @@ mm_iface_modem_location_3gpp_update_mcc_mnc (MMIfaceModemLocation *self,
g_object_get (self,
MM_IFACE_MODEM_LOCATION_DBUS_SKELETON, &skeleton,
NULL);
+ if (!skeleton)
+ return;
if (mm_gdbus_modem_location_get_enabled (skeleton) & MM_MODEM_LOCATION_SOURCE_3GPP_LAC_CI) {
guint changed = 0;
@@ -314,6 +318,8 @@ mm_iface_modem_location_3gpp_update_lac_ci (MMIfaceModemLocation *self,
g_object_get (self,
MM_IFACE_MODEM_LOCATION_DBUS_SKELETON, &skeleton,
NULL);
+ if (!skeleton)
+ return;
if (mm_gdbus_modem_location_get_enabled (skeleton) & MM_MODEM_LOCATION_SOURCE_3GPP_LAC_CI) {
guint changed = 0;
@@ -340,6 +346,8 @@ mm_iface_modem_location_3gpp_clear (MMIfaceModemLocation *self)
g_object_get (self,
MM_IFACE_MODEM_LOCATION_DBUS_SKELETON, &skeleton,
NULL);
+ if (!skeleton)
+ return;
if (mm_gdbus_modem_location_get_enabled (skeleton) & MM_MODEM_LOCATION_SOURCE_3GPP_LAC_CI) {
guint changed = 0;