diff --git a/drivers/bluetooth/uart.c b/drivers/bluetooth/uart.c index 1236b304b2c..0bf07312a41 100644 --- a/drivers/bluetooth/uart.c +++ b/drivers/bluetooth/uart.c @@ -180,7 +180,7 @@ void bt_uart_isr(void *unused) return; } - if (remaining > bt_buf_tailroom(buf)) { + if (buf && remaining > bt_buf_tailroom(buf)) { BT_ERR("Not enough space in buffer\n"); goto failed; }