RobertIndie commented on a change in pull request #12367:
URL: https://github.com/apache/pulsar/pull/12367#discussion_r731808968
##########
File path:
pulsar-broker/src/main/java/org/apache/pulsar/broker/service/SystemTopicBasedTopicPoliciesService.java
##########
@@ -393,7 +403,8 @@ private void
fetchTopicPoliciesAsyncAndCloseReader(SystemTopicClient.Reader<Puls
if (e != null) {
future.completeExceptionally(e);
}
- if
(EventType.TOPIC_POLICY.equals(msg.getValue().getEventType())) {
+ if (msg != null && msg.getValue() != null
Review comment:
Does it seem like we don't need to check `msg != null` here?
--
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]