You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@rocketmq.apache.org by ka...@apache.org on 2023/03/13 06:38:35 UTC

[rocketmq] branch develop updated: Fixed the proxy configuration path null value problem (#6311)

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

kaili pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/rocketmq.git


The following commit(s) were added to refs/heads/develop by this push:
     new 0732f125f Fixed the proxy configuration path null value problem (#6311)
0732f125f is described below

commit 0732f125f929ae6aefb561322ec062b8a1e58a00
Author: Lobo Xu <31...@qq.com>
AuthorDate: Mon Mar 13 14:38:25 2023 +0800

    Fixed the proxy configuration path null value problem (#6311)
    
    Co-authored-by: loboxu <lo...@tencent.com>
---
 .../java/org/apache/rocketmq/proxy/config/ConfigurationManager.java   | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/proxy/src/main/java/org/apache/rocketmq/proxy/config/ConfigurationManager.java b/proxy/src/main/java/org/apache/rocketmq/proxy/config/ConfigurationManager.java
index 61e449896..7c16b2d32 100644
--- a/proxy/src/main/java/org/apache/rocketmq/proxy/config/ConfigurationManager.java
+++ b/proxy/src/main/java/org/apache/rocketmq/proxy/config/ConfigurationManager.java
@@ -31,6 +31,10 @@ public class ConfigurationManager {
         if (StringUtils.isEmpty(proxyHome)) {
             proxyHome = System.getProperty(RMQ_PROXY_HOME, DEFAULT_RMQ_PROXY_HOME);
         }
+
+        if (proxyHome == null) {
+            proxyHome = "./";
+        }
     }
 
     public static void intConfig() throws Exception {