[RIC-436] Fix out of range defect for setupRequestIes
[ric-plt/e2mgr.git] / E2Manager / handlers / rmrmsghandlers / e2_setup_request_notification_handler.go
index 9ea0ef5..7cd5458 100644 (file)
@@ -140,7 +140,10 @@ func (h E2SetupRequestNotificationHandler) setGnbFunctions(nodebInfo *entities.N
                return err
        }
 
-       nodebInfo.GetGnb().RanFunctions = ranFunctions
+       if ranFunctions != nil {
+               nodebInfo.GetGnb().RanFunctions = ranFunctions
+       }
+
        return nil
 }