You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@rocketmq.apache.org by GitBox <gi...@apache.org> on 2022/07/28 07:13:26 UTC

[GitHub] [rocketmq] Oliverwqcwrw opened a new issue, #4708: decodeMsgList will occur NPE when getMessageResult is null

Oliverwqcwrw opened a new issue, #4708:
URL: https://github.com/apache/rocketmq/issues/4708

   **BUG REPORT**
   
   1. Please describe the issue you observed:
   
   - What did you do (The steps to reproduce)?
   
   In `org.apache.rocketmq.broker.failover.EscapeBridge#getMessage`
   
   decodeMsgList will occur NPE when getMessageResult is null
   
   > 
   
           if (messageStore != null) {
                   final GetMessageResult getMessageTmpResult = messageStore.getMessage(innerConsumerGroupName, topic, queueId, 
            offset, 1, null);
                 List<MessageExt> list = decodeMsgList(getMessageTmpResult);
   
   
   
   org.apache.rocketmq.broker.failover.EscapeBridge#decodeMsgList
   
   
       List<MessageExt> foundList = new ArrayList<>();
           try {
               List<ByteBuffer> messageBufferList = getMessageResult.getMessageBufferList();
   
   - What is expected to see?
   
   it not exist potential NPE
   
   - What did you see instead?
   
   exist potential NPE
   
   2. Please tell us about your environment:
   
   develop
   
   4. Other information (e.g. detailed explanation, logs, related issues, suggestions on how to fix, etc):


-- 
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: dev-unsubscribe@rocketmq.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


[GitHub] [rocketmq] RongtongJin closed issue #4708: decodeMsgList will occur NPE when getMessageResult is null

Posted by GitBox <gi...@apache.org>.
RongtongJin closed issue #4708: decodeMsgList will occur NPE when getMessageResult is null
URL: https://github.com/apache/rocketmq/issues/4708


-- 
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: dev-unsubscribe@rocketmq.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org