Aws-sdk-java-v2: ReceiveMessageResponse.messages is null when no message is returned by SQS

Created on 9 Apr 2018  路  3Comments  路  Source: aws/aws-sdk-java-v2

Hello,

Not sure if this is the expected behaviour but ReceiveMessageResponse.messages() is null if no message has been returned but the queue. Otherwise it is a regular instance of a list.

If it expected then it should be documented ReceiveMessageResponse.java, otherwise it should be fixed.

Thank you for your help!

bug

Most helpful comment

529 has been merged. This will be fixed in the next preview release!

All 3 comments

Should definitely return an empty list instead of null

Thanks @vhiairrassary and @ochrons. This should be fixed as part of #519 and #529!

529 has been merged. This will be fixed in the next preview release!

Was this page helpful?
0 / 5 - 0 ratings