Skip to content

Commit e6efcd5

Browse files
sathiyajithandy89923
authored andcommitted
fix: bugfix for #579
1 parent e861d37 commit e6efcd5

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

internal/sbi/processor/event_exposure.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,15 @@ func (p *Processor) CreateAMFEventSubscriptionProcedure(createEventSubscription
6262
ueEventSubscription.RemainReports = new(int32)
6363
*ueEventSubscription.RemainReports = subscription.Options.MaxReports
6464
}
65+
66+
if subscription.EventList == nil {
67+
problemDetails := &models.ProblemDetails{
68+
Status: http.StatusBadRequest,
69+
Cause: "SUBSCRIPTION_EMPTY",
70+
}
71+
return nil, problemDetails
72+
}
73+
6574
for _, events := range *subscription.EventList {
6675
immediateFlags = append(immediateFlags, events.ImmediateFlag)
6776
if events.ImmediateFlag {

0 commit comments

Comments
 (0)