This is an automated email from the ASF dual-hosted git repository.

morningman pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/doris.git


The following commit(s) were added to refs/heads/master by this push:
     new 9b8e3ed88a3 [fix](common) If the properties in DDL is not provided, 
the mysql client will lost connection (#30256)
9b8e3ed88a3 is described below

commit 9b8e3ed88a3443279a4519e5d2eacfad85a812ad
Author: allenhooo <[email protected]>
AuthorDate: Mon Jan 29 14:49:53 2024 +0800

    [fix](common) If the properties in DDL is not provided, the mysql client 
will lost connection (#30256)
---
 .../src/main/java/org/apache/doris/common/util/PrintableMap.java       | 3 +++
 1 file changed, 3 insertions(+)

diff --git 
a/fe/fe-core/src/main/java/org/apache/doris/common/util/PrintableMap.java 
b/fe/fe-core/src/main/java/org/apache/doris/common/util/PrintableMap.java
index 33e5624a517..27d6468827b 100644
--- a/fe/fe-core/src/main/java/org/apache/doris/common/util/PrintableMap.java
+++ b/fe/fe-core/src/main/java/org/apache/doris/common/util/PrintableMap.java
@@ -93,6 +93,9 @@ public class PrintableMap<K, V> {
 
     @Override
     public String toString() {
+        if (map == null) {
+            return "";
+        }
         StringBuilder sb = new StringBuilder();
         Iterator<Map.Entry<K, V>> iter = showEntries().iterator();
         while (iter.hasNext()) {


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to