You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Host.AmazonSQS] NullReferenceException when consuming plain SQS Messages without MessageAttributes #441
When using SQS With a Plain SQS Setup I get a NullRefercenException when there are no MessageAttributes set on the SQS message.
Unfortunately this is the default for some direct AWS service integrations like e.g. Iot Topic Rules.
Great catch, @dboschm! We can either use ?? or initialize an empty dictionary (which I prefer). With the major AWS SDK version upgrade, the SDK now sets most collections to null when they’re empty. This behavior slipped through during the upgrade, so thanks for bringing it to our attention.
Activity
zarusz commentedon Nov 12, 2025
Great catch, @dboschm! We can either use ?? or initialize an empty dictionary (which I prefer). With the major AWS SDK version upgrade, the SDK now sets most collections to null when they’re empty. This behavior slipped through during the upgrade, so thanks for bringing it to our attention.
Would you like to open a PR with the fix?
zarusz commentedon Nov 14, 2025
Fix released in 3.3.5 via #442
@dboschm thanks for your contribution!