From 60481a33f5721b032b4169dedea54bdc2c7423e7 Mon Sep 17 00:00:00 2001 From: wangbo <506340561@qq.com> Date: Fri, 29 Dec 2023 16:59:44 +0800 Subject: [PATCH] Fix topicPublisher thread may NPE when no topic exists --- .../org/apache/doris/common/publish/TopicPublisherThread.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fe/fe-core/src/main/java/org/apache/doris/common/publish/TopicPublisherThread.java b/fe/fe-core/src/main/java/org/apache/doris/common/publish/TopicPublisherThread.java index db5158e24f5a012..92f561305e033b4 100644 --- a/fe/fe-core/src/main/java/org/apache/doris/common/publish/TopicPublisherThread.java +++ b/fe/fe-core/src/main/java/org/apache/doris/common/publish/TopicPublisherThread.java @@ -66,7 +66,7 @@ protected void runAfterCatalogReady() { topicPublisher.getTopicInfo(request); } - if (request.getTopicMap().size() == 0) { + if (request.getTopicMapSize() == 0) { return; }