jlprat commented on a change in pull request #10840: URL: https://github.com/apache/kafka/pull/10840#discussion_r657134887
########## File path: streams/src/main/java/org/apache/kafka/streams/processor/internals/ThreadMetadataImpl.java ########## @@ -57,7 +57,11 @@ public ThreadMetadataImpl(final String threadName, final Set<TaskMetadata> standbyTasks) { this.mainConsumerClientId = mainConsumerClientId; this.restoreConsumerClientId = restoreConsumerClientId; - this.producerClientIds = Collections.unmodifiableSet(producerClientIds); + if (producerClientIds != null) { + this.producerClientIds = Collections.unmodifiableSet(producerClientIds); + } else { + this.producerClientIds = Collections.emptySet(); + } Review comment: @cadonna, I needed to add this guard as ThreadMetadataTest was failing with NPE. -- 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. For queries about this service, please contact Infrastructure at: us...@infra.apache.org