yin-bo-Final opened a new pull request, #10420: URL: https://github.com/apache/rocketmq/pull/10420
### Which Issue(s) This PR Fixes - Fixes #10419 <!-- Please ensure that the related issue has already been created, and [link this pull request to that issue using keywords](<https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue#linking-a-pull-request-to-an-issue-using-a-keyword>) to ensure automatic closure. --> ### Brief Description This PR avoids a potential `NullPointerException` in `PullAPIWrapper#computePullFromWhichFilterServer` when class filter is enabled but the local topic route table does not contain route data for the target topic. Instead of dereferencing a missing `TopicRouteData`, the code falls through to the existing `MQClientException` path. ### How Did You Test This Change? - Added a targeted unit test for missing topic route data. - Ran: ```bash mvn -pl client -Dtest=org.apache.rocketmq.client.impl.consumer.PullAPIWrapperTest -Djacoco.skip=true test ``` The test passed with `Tests run: 8, Failures: 0, Errors: 0, Skipped: 0`. -- 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]
