fix: ensure Messages is not null#1486
Merged
jeremydmiller merged 1 commit intoJasperFx:mainfrom Jun 10, 2025
Merged
Conversation
Member
|
@marc-RocketRez Thank you! |
This was referenced Mar 1, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Ensure the Messages object is not null. Currently, an exception is being thrown while the listener is polling for new messages:
fail: Wolverine.AmazonSqs.Internal.SqsListener[0]
Error while trying to retrieve messages from SQS Queue sqs://mp-order-test/
System.ArgumentNullException: Value cannot be null. (Parameter 'source')
at System.Linq.ThrowHelper.ThrowArgumentNullException(ExceptionArgument argument)
at System.Linq.Enumerable.Any[TSource](IEnumerable`1 source)
at Wolverine.AmazonSqs.Internal.SqsListener.<>c__DisplayClass8_0.<<-ctor>b__2>d.MoveNext() in /home/runner/work/wolverine/wolverine/src/Transports/AWS/Wolverine.AmazonSqs/Internal/SqsListener.cs:line 72
Received OrderCreated event: d5fb4307-2ea8-4fe9-a651-72398f20958c, 3, 789
It does work when a message is received:
info: Messages.Orders.OrderCreated[104]
Successfully processed message Messages.Orders.OrderCreated#08dda704-6e0a-a519-2aa0-6bd09e130000 from sqs://mp-order-test/
This will resolve #1484