Help with the "Attempted to deference zero pointer" Error

10 views
Skip to first unread message

Angèle Hager Hafaiedh

unread,
Feb 23, 2026, 10:53:46 AM (4 days ago) Feb 23
to 5G-LENA-users
Tried to create Parabolic Antennas for both Gnb and UE :

// Override the default antenna model with ParabolicAntennaModel
        nrHelper->SetUeAntennaTypeId(ParabolicAntennaModel::GetTypeId().GetName());
        nrHelper->SetGnbAntennaTypeId(ParabolicAntennaModel::GetTypeId().GetName());
        // Configure Friis propagation loss model before assign it to band
        channelHelper->ConfigurePropagationFactory(FriisPropagationLossModel::GetTypeId());


I followed the same approach as the following file: 

However I get the  "Attempted to deference zero pointer" Error but i don't know why?

Thank you in advance
gsoc-nr-channel-models.cc

Gabriel Ferreira

unread,
Feb 23, 2026, 12:15:42 PM (4 days ago) Feb 23
to 5G-LENA-users
Hi Àngele,

Without the actual example, I can't possibly know that. You'd need to debug and find out by yourself. This example doesn't use many advanced features. Not sure it is the same for the one you're working on.

Best regards,

Gabriel.
Reply all
Reply to author
Forward
0 new messages