nullPointerRedundantCheck
This commit is contained in:
@@ -592,7 +592,7 @@ static void initialize_agent(ngran_node_t node_type, e2_agent_args_t oai_args)
|
||||
nb_id = rrc->node_id;
|
||||
} else if (node_type == ngran_gNB_DU) {
|
||||
const gNB_MAC_INST* mac = RC.nrmac[0];
|
||||
AssertFatal(mac != NULL, "MAC not initialized\n");
|
||||
AssertFatal(mac, "MAC not initialized\n");
|
||||
cu_du_id = mac->f1_config.gnb_id;
|
||||
nb_id = mac->f1_config.setup_req->gNB_DU_id;
|
||||
} else if (node_type == ngran_gNB_CU || node_type == ngran_gNB_CUCP) {
|
||||
|
||||
Reference in New Issue
Block a user