mirror of
https://gitee.com/binary/weixin-java-tools.git
synced 2025-10-29 01:18:36 +08:00
🎨 #1619 企业微信获取用户信息接口优化,处理type为null情况下可能会导致的空指针问题
This commit is contained in:
@ -99,6 +99,7 @@ public class WxCpUserGsonAdapter implements JsonDeserializer<WxCpUser>, JsonSeri
|
|||||||
user.getExtAttrs().add(attr);
|
user.getExtAttrs().add(attr);
|
||||||
|
|
||||||
if (type == null) {
|
if (type == null) {
|
||||||
|
attr.setTextValue(GsonHelper.getString(attrJsonElement.getAsJsonObject(), "value"));
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user