From 58ce75d3b478df759f1051c79a714dd031bfeb6a Mon Sep 17 00:00:00 2001 From: AlaiaL Date: Fri, 23 Apr 2021 12:39:45 +0200 Subject: [PATCH] Fixes coverity 369617 --- srsue/src/phy/lte/cc_worker.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srsue/src/phy/lte/cc_worker.cc b/srsue/src/phy/lte/cc_worker.cc index 122af973c..6dd7978cf 100644 --- a/srsue/src/phy/lte/cc_worker.cc +++ b/srsue/src/phy/lte/cc_worker.cc @@ -764,7 +764,7 @@ bool cc_worker::encode_uplink(mac_interface_phy_lte::tb_action_ul_t* action, srs } // Store metrics - if (action->tb.enabled) { + if (action && action->tb.enabled) { ul_metrics_t ul_metrics = {}; ul_metrics.mcs = ue_ul_cfg.ul_cfg.pusch.grant.tb.mcs_idx; ul_metrics.power = 0;