ShannonDing opened a new issue #3559:
URL: https://github.com/apache/rocketmq/issues/3559


   in example/ordermessage/producer.java.
   make sure message queue is not null before using selecting a queue.
   ```
   SendResult sendResult = producer.send(msg, new MessageQueueSelector() {
          @Override
           public MessageQueue select(List<MessageQueue> mqs, Message msg, 
Object arg) {
           Integer id = (Integer) arg;
           int index = id % mqs.size();
           return mqs.get(index);
          }
    }, orderId);
   ```
   if the mqs is null, mqs.size() may be crash.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to