diff --git a/internal/sbi/producer/ue_context_management.go b/internal/sbi/producer/ue_context_management.go index 5fff6aa..4fafc03 100644 --- a/internal/sbi/producer/ue_context_management.go +++ b/internal/sbi/producer/ue_context_management.go @@ -675,7 +675,7 @@ func RegistrationSmfRegistrationsProcedure(request *models.SmfRegistration, ueID pduID32 := int32(pduID64) var createSmfContextNon3gppParamOpts Nudr_DataRepository.CreateSmfContextNon3gppParamOpts - optInterface := optional.NewInterface(request) + optInterface := optional.NewInterface(*request) createSmfContextNon3gppParamOpts.SmfRegistration = optInterface clientAPI, err := createUDMClientToUDR(ueID) @@ -686,7 +686,6 @@ func RegistrationSmfRegistrationsProcedure(request *models.SmfRegistration, ueID resp, err := clientAPI.SMFRegistrationDocumentApi.CreateSmfContextNon3gpp(context.Background(), ueID, pduID32, &createSmfContextNon3gppParamOpts) if err != nil { - problemDetails.Cause = err.(openapi.GenericOpenAPIError).Model().(models.ProblemDetails).Cause problemDetails = &models.ProblemDetails{ Status: int32(resp.StatusCode), Cause: err.(openapi.GenericOpenAPIError).Model().(models.ProblemDetails).Cause,