Looking at this closer, the messageIds cannot be null if anything is returned. Added a checkNotNull. Thanks.