Skip to content

Commit 320f367

Browse files
committed
🎨 #1619 企业微信获取用户信息接口优化,处理type为null情况下可能会导致的空指针问题
1 parent 1ae00b6 commit 320f367

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

Diff for: weixin-java-cp/src/main/java/me/chanjar/weixin/cp/util/json/WxCpUserGsonAdapter.java

+1
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,7 @@ private void buildExtraAttrs(JsonObject o, WxCpUser user) {
9999
user.getExtAttrs().add(attr);
100100

101101
if (type == null) {
102+
attr.setTextValue(GsonHelper.getString(attrJsonElement.getAsJsonObject(), "value"));
102103
continue;
103104
}
104105

0 commit comments

Comments
 (0)