fix:使用HttpComponents时若不配置proxy password启动报错问题#3830
Merged
binarywang merged 1 commit intobinarywang:developfrom Jan 6, 2026
Merged
fix:使用HttpComponents时若不配置proxy password启动报错问题#3830binarywang merged 1 commit intobinarywang:developfrom
binarywang merged 1 commit intobinarywang:developfrom
Conversation
There was a problem hiding this comment.
Pull request overview
此 PR 修复了当未配置 HTTP 代理密码时,使用 HttpComponents 客户端实现会导致启动报错的问题。通过在调用 toCharArray() 方法前添加空值检查,避免了 NullPointerException。
主要变更:
- 在 6 个 HttpComponents 服务实现类的
initHttp()方法中添加空值检查 - 移除了 2 个未使用的 import 语句
Reviewed changes
Copilot reviewed 6 out of 6 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| weixin-java-qidian/src/main/java/me/chanjar/weixin/qidian/api/impl/WxQidianServiceHttpComponentsImpl.java | 添加 httpProxyPassword 空值检查以防止启动时 NPE |
| weixin-java-mp/src/main/java/me/chanjar/weixin/mp/api/impl/WxMpServiceHttpComponentsImpl.java | 添加 httpProxyPassword 空值检查以防止启动时 NPE |
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpServiceHttpComponentsImpl.java | 添加 httpProxyPassword 空值检查并移除未使用的 import |
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/corpgroup/service/impl/WxCpCgServiceHttpComponentsImpl.java | 添加 httpProxyPassword 空值检查以防止启动时 NPE |
| weixin-java-cp/src/main/java/me/chanjar/weixin/cp/api/impl/WxCpServiceHttpComponentsImpl.java | 添加 httpProxyPassword 空值检查以防止启动时 NPE |
| weixin-java-channel/src/main/java/me/chanjar/weixin/channel/api/impl/WxChannelServiceHttpComponentsImpl.java | 添加 httpProxyPassword 空值检查并移除未使用的 import |
...a-cp/src/main/java/me/chanjar/weixin/cp/tp/service/impl/WxCpTpServiceHttpComponentsImpl.java
Show resolved
Hide resolved
Owner
|
auggie review |
🤖 Augment PR SummarySummary: Changes: 🤖 Was this summary useful? React with 👍 or 👎 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.