iface-modem-cdma: don't try to update anything if no skeleton available

This commit is contained in:
Aleksander Morgado
2012-08-28 17:25:25 +02:00
parent 26e95b2d3c
commit 3ee1fb691c

View File

@@ -911,6 +911,8 @@ mm_iface_modem_cdma_update_evdo_registration_state (MMIfaceModemCdma *self,
MM_IFACE_MODEM_CDMA_EVDO_NETWORK_SUPPORTED, &supported, MM_IFACE_MODEM_CDMA_EVDO_NETWORK_SUPPORTED, &supported,
MM_IFACE_MODEM_CDMA_DBUS_SKELETON, &skeleton, MM_IFACE_MODEM_CDMA_DBUS_SKELETON, &skeleton,
NULL); NULL);
if (!skeleton)
return;
if (supported) { if (supported) {
/* The property in the interface is bound to the property /* The property in the interface is bound to the property
@@ -960,6 +962,8 @@ mm_iface_modem_cdma_update_cdma1x_registration_state (MMIfaceModemCdma *self,
MM_IFACE_MODEM_CDMA_CDMA1X_NETWORK_SUPPORTED, &supported, MM_IFACE_MODEM_CDMA_CDMA1X_NETWORK_SUPPORTED, &supported,
MM_IFACE_MODEM_CDMA_DBUS_SKELETON, &skeleton, MM_IFACE_MODEM_CDMA_DBUS_SKELETON, &skeleton,
NULL); NULL);
if (!skeleton)
return;
if (supported) { if (supported) {
/* The property in the interface is bound to the property /* The property in the interface is bound to the property