Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 9343b35b authored by bidsharma's avatar bidsharma
Browse files

RFComm: Check for nullptr in PORT_IsOpening logs

Test: gd/cert/run
Bug: 233984469
Tag: #refactor
Ignore-AOSP-First: Adding the change to aosp separately

Change-Id: I3e892ed2ae0ae78a98a02df8cb24efd3a0826090
parent aaa3fcb7
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -516,7 +516,7 @@ bool PORT_IsOpening(RawAddress* bd_addr) {
      }

      LOG_INFO("RFC_MX_STATE_CONNECTED, found_port=%d, tRFC_PORT_STATE=%d",
               found_port, p_port->rfc.state);
               found_port, p_port != nullptr ? p_port->rfc.state : 0);
      if ((!found_port) ||
          (found_port && (p_port->rfc.state < RFC_STATE_OPENED))) {
        /* Port is not established yet. */