The problem will probably look like the following.
- is bugged code that should be replaced
+ is fixed code
- Ptr<NrSpectrumPhy> nrSpectrumPhy;
- uePhyFirst->GetAttribute("NrSpectrumPhyList", ueSpectrumPhysFirstBwp);
- nrSpectrumPhy = ueSpectrumPhysFirstBwp.Get(0)->GetObject<NrSpectrumPhy>();
+ Ptr<NrSpectrumPhy> nrSpectrumPhy = uePhyFirst->GetSpectrumPhy();