RockteMQ-AI commented on issue #10770: URL: https://github.com/apache/rocketmq/issues/10770#issuecomment-5163341347
**Issue Evaluation** Category: `type/bug` | Status: **Confirmed** The reported issue has been verified against the current codebase on the `develop` branch. **Root Cause:** In `RouteActivity#queryAssignment`, after retrieving `brokerIdMap` for a broker name, the code calls `brokerIdMap.get(MixAll.MASTER_ID)` and assigns it to `masterAddr`. If the broker registration map has no entry for `MASTER_ID`, `masterAddr` will be null, and the subsequent `masterAddr.hashCode()` call at line 306 will throw a `NullPointerException`. **Impact:** gRPC `queryAssignment` requests can crash when a broker name exists in the route data but has no registered master, causing client-visible failures. **Severity:** medium A fix proposal can be generated. Reply with feedback if needed. --- *Automated evaluation by github-manager-bot* -- 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]
