diff --git a/lib/src/pdcp/pdcp_entity_lte.cc b/lib/src/pdcp/pdcp_entity_lte.cc index d4be424e1..017b45123 100644 --- a/lib/src/pdcp/pdcp_entity_lte.cc +++ b/lib/src/pdcp/pdcp_entity_lte.cc @@ -472,10 +472,14 @@ void pdcp_entity_lte::update_rx_counts_queue(uint32_t rx_count) rx_counts_info.pop_back(); fmc++; } - logger.debug("Queue too large. Updating. New FMC=%d, new back=%d, new queue_size=%zu", - fmc, - rx_counts_info.back(), - rx_counts_info.size()); + if (not rx_counts_info.empty()) { + logger.debug("Queue too large. Updating. New FMC=%d, new back=%d, new queue_size=%zu", + fmc, + rx_counts_info.back(), + rx_counts_info.size()); + } else { + logger.debug("Queue too large. Updating. New FMC=%d, new queue_size=%zu", fmc, rx_counts_info.size()); + } } if (rx_counts_info.empty()) {