summaryrefslogtreecommitdiff
path: root/system/stack/rfcomm/port_api.cc
diff options
context:
space:
mode:
Diffstat (limited to 'system/stack/rfcomm/port_api.cc')
-rw-r--r--system/stack/rfcomm/port_api.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/system/stack/rfcomm/port_api.cc b/system/stack/rfcomm/port_api.cc
index 56b0fd1d0f..cca0f05310 100644
--- a/system/stack/rfcomm/port_api.cc
+++ b/system/stack/rfcomm/port_api.cc
@@ -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. */