From 7765a4519be135e216a30d215cc8ab762ad371cf Mon Sep 17 00:00:00 2001 From: Sachin Nayak Date: Tue, 13 Apr 2021 12:41:09 -0700 Subject: [PATCH] lte: Set UeRrcSapProvider only if RNTI exists at the eNB see MR !605 --- src/lte/model/lte-rrc-protocol-real.cc | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/lte/model/lte-rrc-protocol-real.cc b/src/lte/model/lte-rrc-protocol-real.cc index 3bcb1b4ee..253229834 100644 --- a/src/lte/model/lte-rrc-protocol-real.cc +++ b/src/lte/model/lte-rrc-protocol-real.cc @@ -448,9 +448,12 @@ LteEnbRrcProtocolReal::SetUeRrcSapProvider (uint16_t rnti, LteUeRrcSapProvider* { std::map::iterator it; it = m_enbRrcSapProviderMap.find (rnti); - NS_ASSERT_MSG (it != m_enbRrcSapProviderMap.end (), "Cell id " << m_cellId - << " could not find RNTI = " << rnti); - it->second = p; + // TODO: remove after merge of ho_failure branch + // assign UE RRC only if the RNTI is found at eNB + if (it != m_enbRrcSapProviderMap.end ()) + { + it->second = p; + } } void