Skip to content

Commit 0732f12

Browse files
socutesloboxu
andauthored
Fixed the proxy configuration path null value problem (#6311)
Co-authored-by: loboxu <loboxu@tencent.com>
1 parent 2cc899f commit 0732f12

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

proxy/src/main/java/org/apache/rocketmq/proxy/config/ConfigurationManager.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ public static void initEnv() {
3131
if (StringUtils.isEmpty(proxyHome)) {
3232
proxyHome = System.getProperty(RMQ_PROXY_HOME, DEFAULT_RMQ_PROXY_HOME);
3333
}
34+
35+
if (proxyHome == null) {
36+
proxyHome = "./";
37+
}
3438
}
3539

3640
public static void intConfig() throws Exception {

0 commit comments

Comments
 (0)