Skip to content

Commit

Permalink
Fix NPE
Browse files Browse the repository at this point in the history
  • Loading branch information
Tharsanan1 committed Oct 8, 2024
1 parent deaa6cc commit c7a2667
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion adapter/internal/operator/synchronizer/synchronizer.go
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,9 @@ func deployMultipleAPIsInGateway(event *APIEvent, successChannel *chan SuccessEv
if len(event.Events) > i {
event.Events = []APIState{}
} else {
event.Events = append(event.Events[:i], event.Events[i+1:]...)
if i >= 0 && i < len(event.Events) {
event.Events = append(event.Events[:i], event.Events[i+1:]...)
}
}
continue
}
Expand Down

0 comments on commit c7a2667

Please sign in to comment.