Skip to content

Commit

Permalink
🎨 #1619 企业微信获取用户信息接口优化,处理type为null情况下可能会导致的空指针问题
Browse files Browse the repository at this point in the history
  • Loading branch information
binarywang committed Jun 16, 2020
1 parent 1ae00b6 commit 320f367
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@ private void buildExtraAttrs(JsonObject o, WxCpUser user) {
user.getExtAttrs().add(attr);

if (type == null) {
attr.setTextValue(GsonHelper.getString(attrJsonElement.getAsJsonObject(), "value"));
continue;
}

Expand Down

0 comments on commit 320f367

Please sign in to comment.