Re: [MM] [PATCH] iface-modem-3gpp-ussd: avoid update if object skeleton is NULL
- From: Aleksander Morgado <aleksander lanedo com>
- To: Ben Chan <benchan chromium org>
- Cc: networkmanager-list gnome org
- Subject: Re: [MM] [PATCH] iface-modem-3gpp-ussd: avoid update if object skeleton is NULL
- Date: Mon, 10 Sep 2012 09:29:02 +0200
On 09/09/2012 05:18 AM, Ben Chan wrote:
> ---
> src/mm-iface-modem-3gpp-ussd.c | 9 +++++++++
> 1 files changed, 9 insertions(+), 0 deletions(-)
Thanks, pushed.
>
> diff --git a/src/mm-iface-modem-3gpp-ussd.c b/src/mm-iface-modem-3gpp-ussd.c
> index 46bd5a4..d92362c 100644
> --- a/src/mm-iface-modem-3gpp-ussd.c
> +++ b/src/mm-iface-modem-3gpp-ussd.c
> @@ -408,6 +408,9 @@ mm_iface_modem_3gpp_ussd_update_state (MMIfaceModem3gppUssd *self,
> MM_IFACE_MODEM_3GPP_USSD_DBUS_SKELETON, &skeleton,
> NULL);
>
> + if (!skeleton)
> + return;
> +
> old_state = (MMModem3gppUssdSessionState) mm_gdbus_modem3gpp_ussd_get_state (skeleton);
>
> if (old_state != new_state)
> @@ -426,6 +429,9 @@ mm_iface_modem_3gpp_ussd_update_network_notification (MMIfaceModem3gppUssd *self
> MM_IFACE_MODEM_3GPP_USSD_DBUS_SKELETON, &skeleton,
> NULL);
>
> + if (!skeleton)
> + return;
> +
> mm_gdbus_modem3gpp_ussd_set_network_notification (skeleton,
> network_notification);
> g_object_unref (skeleton);
> @@ -441,6 +447,9 @@ mm_iface_modem_3gpp_ussd_update_network_request (MMIfaceModem3gppUssd *self,
> MM_IFACE_MODEM_3GPP_USSD_DBUS_SKELETON, &skeleton,
> NULL);
>
> + if (!skeleton)
> + return;
> +
> mm_gdbus_modem3gpp_ussd_set_network_request (skeleton,
> network_request);
> g_object_unref (skeleton);
>
--
Aleksander
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]