Skip to content

Commit

Permalink
Merge pull request #2548 from Tharsanan1/fix-NPE
Browse files Browse the repository at this point in the history
Fix NPE
  • Loading branch information
Tharsanan1 authored Oct 8, 2024
2 parents 245f645 + c7a2667 commit e382ae2
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 e382ae2

Please sign in to comment.