Skip to content

Commit a413e21

Browse files
committed
Assert that m_sharedTransport is set before use
1 parent 6e61efd commit a413e21

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

erpc_c/infra/erpc_transport_arbitrator.cpp

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,8 @@ void TransportArbitrator::setCrc16(Crc16 *crcImpl)
5050

5151
bool TransportArbitrator::hasMessage(void)
5252
{
53+
assert(m_sharedTransport && "shared transport is not set");
54+
5355
return m_sharedTransport->hasMessage();
5456
}
5557

0 commit comments

Comments
 (0)