LongWangXX commented on a change in pull request #16417:
URL: https://github.com/apache/flink/pull/16417#discussion_r667576921



##########
File path: 
flink-connectors/flink-connector-kafka/src/main/java/org/apache/flink/streaming/connectors/kafka/FlinkKafkaProducer.java
##########
@@ -647,8 +648,10 @@ private FlinkKafkaProducer(
                 new FlinkKafkaProducer.TransactionStateSerializer(),
                 new FlinkKafkaProducer.ContextStateSerializer());
 
-        this.defaultTopicId = checkNotNull(defaultTopic, "defaultTopic is 
null");
-
+        checkArgument(
+                
!org.apache.flink.util.StringUtils.isNullOrWhitespaceOnly(defaultTopic),

Review comment:
       Thank you for your suggestion, it's good, I modified it




-- 
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]


Reply via email to