ijuma commented on code in PR #18845: URL: https://github.com/apache/kafka/pull/18845#discussion_r1948437894
########## metadata/src/main/java/org/apache/kafka/image/node/MetadataNode.java: ########## @@ -53,7 +53,8 @@ default void print(MetadataNodePrinter printer) { for (String name : names) { printer.enterNode(name); MetadataNode child = child(name); - child.print(printer); + if (child != null) + child.print(printer); Review Comment: Fixes a NPE I noticed while debugging a failing test. -- 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: jira-unsubscr...@kafka.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org