From b8df42a377ca61390494155e99672434fc72083c Mon Sep 17 00:00:00 2001 From: Michael Pu Date: Wed, 31 Jan 2024 12:09:05 -0500 Subject: [PATCH] Fix nil ptr deference when listing client queues Signed-off-by: Cecylia Bocovich --- broker/sqs.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/broker/sqs.go b/broker/sqs.go index 057a923..47b97c2 100644 --- a/broker/sqs.go +++ b/broker/sqs.go @@ -71,6 +71,8 @@ func (r *sqsHandler) cleanupClientQueues(ctx context.Context) { }) if err != nil { log.Printf("SQSHandler: encountered error while retrieving client queues to clean up: %v\n", err) + // client queues will be cleaned up the next time the cleanup operation is triggered automatically + break } queueURLsList = append(queueURLsList, res.QueueUrls...) if res.NextToken == nil {