Hi,

> @@ -529,7 +531,12 @@ static void stk_alpha_id_set(struct ofono_stk *stk,
>
>  static void stk_alpha_id_unset(struct ofono_stk *stk)
>  {
> -     stk_agent_request_cancel(stk->current_agent);
> +     /*
> +      * If there is no default agent, then current agent also will be NULL.
> +      * So, call request cancel only when there is a valid current agent.
> +      */
> +     if (stk->current_agent)
> +             stk_agent_request_cancel(stk->current_agent);
>  }
>

If needed, I can send this code change alone in a separate fix patch.

Regards,
Jeevaka
_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to