Skip to content

Commit 3f54f76

Browse files
authored
Merge pull request #32 from saileshvvr/uecm_smf_registration
UECM SMF Registration pointer de-reference
2 parents adfd203 + a786da7 commit 3f54f76

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

internal/sbi/producer/ue_context_management.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ func RegistrationSmfRegistrationsProcedure(request *models.SmfRegistration, ueID
675675
pduID32 := int32(pduID64)
676676

677677
var createSmfContextNon3gppParamOpts Nudr_DataRepository.CreateSmfContextNon3gppParamOpts
678-
optInterface := optional.NewInterface(request)
678+
optInterface := optional.NewInterface(*request)
679679
createSmfContextNon3gppParamOpts.SmfRegistration = optInterface
680680

681681
clientAPI, err := createUDMClientToUDR(ueID)
@@ -686,7 +686,6 @@ func RegistrationSmfRegistrationsProcedure(request *models.SmfRegistration, ueID
686686
resp, err := clientAPI.SMFRegistrationDocumentApi.CreateSmfContextNon3gpp(context.Background(), ueID,
687687
pduID32, &createSmfContextNon3gppParamOpts)
688688
if err != nil {
689-
problemDetails.Cause = err.(openapi.GenericOpenAPIError).Model().(models.ProblemDetails).Cause
690689
problemDetails = &models.ProblemDetails{
691690
Status: int32(resp.StatusCode),
692691
Cause: err.(openapi.GenericOpenAPIError).Model().(models.ProblemDetails).Cause,

0 commit comments

Comments
 (0)