Commit b253fc5
Fix NullPointerException when MCP is disabled
Add null check for mcpRequestHandler before accessing getMcpEndpoint() method. This prevents NullPointerException when arthas.mcpEndpoint is set to empty string (MCP disabled) and accessing endpoints like /arthas-output/.
Co-authored-by: hengyunabc <1683936+hengyunabc@users.noreply.github.com>1 parent 069b966 commit b253fc5
File tree
1 file changed
+7
-5
lines changed- core/src/main/java/com/taobao/arthas/core/shell/term/impl/http
1 file changed
+7
-5
lines changedLines changed: 7 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
76 | 76 | | |
77 | 77 | | |
78 | 78 | | |
79 | | - | |
80 | | - | |
81 | | - | |
82 | | - | |
83 | | - | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
84 | 86 | | |
85 | 87 | | |
86 | 88 | | |
| |||
0 commit comments