Skip to content

Commit

Permalink
fix: bugfix for #579
Browse files Browse the repository at this point in the history
  • Loading branch information
sathiyajith authored and andy89923 committed Jul 1, 2024
1 parent e861d37 commit e6efcd5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/sbi/processor/event_exposure.go
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,15 @@ func (p *Processor) CreateAMFEventSubscriptionProcedure(createEventSubscription
ueEventSubscription.RemainReports = new(int32)
*ueEventSubscription.RemainReports = subscription.Options.MaxReports
}

if subscription.EventList == nil {
problemDetails := &models.ProblemDetails{
Status: http.StatusBadRequest,
Cause: "SUBSCRIPTION_EMPTY",
}
return nil, problemDetails
}

for _, events := range *subscription.EventList {
immediateFlags = append(immediateFlags, events.ImmediateFlag)
if events.ImmediateFlag {
Expand Down

0 comments on commit e6efcd5

Please sign in to comment.