Skip to content

[Bug] NPE in proxy.processor.ConsumerProcessor#lockBatchMQ and #unlockBatchMQ #7075

@qianye1001

Description

@qianye1001

Before Creating the Bug Report

  • I found a bug, not just asking a question, which should be created in GitHub Discussions.

  • I have searched the GitHub Issues and GitHub Discussions of this repository and believe that this is not a duplicate.

  • I have confirmed that this bug belongs to the current repository, not other repositories of RocketMQ.

Runtime platform environment

mac os

RocketMQ version

5.1.3

JDK Version

java11

Describe the Bug

Set addressableMessageQueueSet = buildAddressableSet(ctx, mqSet);

addressableMessageQueueSet can be null when Function buildAddressableSet catch exception

Map<String, List> messageQueueSetMap = buildAddressableMapByBrokerName(addressableMessageQueueSet);

in function buildAddressableMapByBrokerName, null will cause NTE

Steps to Reproduce

Specially handle the returned null and print the log

What Did You Expect to See?

no exception

What Did You See Instead?

null pointer exception

Additional Context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions