Commit 2f4c21ce authored by tomita's avatar tomita

Fix to avoid Segmemtation Fault in case of physicalConfigDedicated is NULL.

parent 1008080e
...@@ -1451,6 +1451,8 @@ fill_nfapi_harq_information(module_id_t module_idP, ...@@ -1451,6 +1451,8 @@ fill_nfapi_harq_information(module_id_t module_idP,
// [UE_id].physicalConfigDedicated-> // [UE_id].physicalConfigDedicated->
// pucch_ConfigDedicated != NULL, // pucch_ConfigDedicated != NULL,
// "pucch_ConfigDedicated is null for TDD!\n"); // "pucch_ConfigDedicated is null for TDD!\n");
if (UE_list->
UE_template[CC_idP][UE_id].physicalConfigDedicated != NULL){
if ((UE_list-> if ((UE_list->
UE_template[CC_idP][UE_id].physicalConfigDedicated-> UE_template[CC_idP][UE_id].physicalConfigDedicated->
pucch_ConfigDedicated != NULL) pucch_ConfigDedicated != NULL)
...@@ -1467,6 +1469,10 @@ fill_nfapi_harq_information(module_id_t module_idP, ...@@ -1467,6 +1469,10 @@ fill_nfapi_harq_information(module_id_t module_idP,
} else { } else {
harq_information->harq_information_rel10_tdd.harq_size = 1; // 1-bit ACK/NAK harq_information->harq_information_rel10_tdd.harq_size = 1; // 1-bit ACK/NAK
harq_information->harq_information_rel10_tdd.ack_nack_mode = 0; // bundling harq_information->harq_information_rel10_tdd.ack_nack_mode = 0; // bundling
}
} else {
harq_information->harq_information_rel10_tdd.harq_size = 1; // 1-bit ACK/NAK
harq_information->harq_information_rel10_tdd.ack_nack_mode = 0; // bundling
} }
harq_information->harq_information_rel10_tdd.tl.tag = NFAPI_UL_CONFIG_REQUEST_HARQ_INFORMATION_REL10_TDD_TAG; harq_information->harq_information_rel10_tdd.tl.tag = NFAPI_UL_CONFIG_REQUEST_HARQ_INFORMATION_REL10_TDD_TAG;
harq_information->harq_information_rel10_tdd.n_pucch_1_0 = harq_information->harq_information_rel10_tdd.n_pucch_1_0 =
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment