<div dir="ltr">Hey again Aleksander! <div><br></div><div>I have another question regarding my SIM-EAP interface. Testing has been going well however I noticed one of the methods of my interface has an invalid address (i.e. either <font face="monospace">(nil)</font> or <font face="monospace">0x2</font>) despite having implementation. I noticed I'm getting this warning which may be responsible for this bug:</div><div><span style="color:rgb(66,66,66);font-family:"Roboto Mono",monospace;font-size:12.8px;white-space:pre-wrap">(ModemManager:4486): GLib-GObject-WARNING **: 17:07:38.068: invalid cast from 'MMSimMbim' to 'MMIfaceSimEap'</span></div><div><font color="#424242" face="Roboto Mono, monospace"><span style="font-size:12.8px;white-space:pre-wrap"><br></span></font></div><div><span style="font-size:12.8px;white-space:pre-wrap"><font style=""><font color="#000000" face="arial, sans-serif">I was wondering if you would know if there is anything else involved in providing a valid cast from these two, other than what I have here (in mm-sim-mbim.c):</font></font></span></div><div><span style="color:rgb(66,66,66);font-family:"Roboto Mono",monospace;font-size:12.8px;white-space:pre-wrap">G_DEFINE_TYPE_EXTENDED(MMSimMbim, mm_sim_mbim, MM_TYPE_BASE_SIM, 0,
                       G_IMPLEMENT_INTERFACE (MM_TYPE_IFACE_SIM_EAP, iface_sim_eap_init))</span></div><div><span style="font-size:12.8px;white-space:pre-wrap"><font style=""><font color="#424242" face="Roboto Mono, monospace"><br></font></font></span></div><div><span style="font-size:12.8px;white-space:pre-wrap"><font style=""><font color="#424242"><font face="arial, sans-serif">Thank you!</font><font face="Roboto Mono, monospace"><br clear="all"></font></font></font></span><div><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">- Florence</div></div></div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Sun, Nov 14, 2021 at 9:14 AM Aleksander Morgado <<a href="mailto:aleksander@aleksander.es">aleksander@aleksander.es</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Hey!<br>
<br>
><br>
> I was able to find the problem! It turns out I was silly and forgot to set GError* error = NULL initially. 😅<br>
><br>
> Thanks for all the help and explanation :)<br>
<br>
Ah! that was an easy fix then :)<br>
<br>
-- <br>
Aleksander<br>
<a href="https://aleksander.es" rel="noreferrer" target="_blank">https://aleksander.es</a><br>
</blockquote></div>