Skip to content

Commit

Permalink
Merge branch 'free5gc:main' into twif
Browse files Browse the repository at this point in the history
  • Loading branch information
YouShengLiu authored Aug 1, 2024
2 parents 20b44ab + 9443d1b commit 464ad7e
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/sbi/processor/event_exposure.go
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ func (p *Processor) CreateAMFEventSubscriptionProcedure(createEventSubscription

createdEventSubscription := &models.AmfCreatedEventSubscription{}
subscription := createEventSubscription.Subscription
if subscription == nil {
problemDetails := &models.ProblemDetails{
Status: http.StatusBadRequest,
Cause: "SUBSCRIPTION_EMPTY",
}
return nil, problemDetails
}
contextEventSubscription := &context.AMFContextEventSubscription{}
contextEventSubscription.EventSubscription = *subscription
var isImmediate bool
Expand Down

0 comments on commit 464ad7e

Please sign in to comment.