|
@@ -308,8 +308,14 @@ public class JiguangPushPlugin implements MessageSenderPlugin, InitializingBean
|
|
|
String ret = HttpUtil.get(baseUrl + "/v3/aliases/" + alias, data, HeaderMap);
|
|
|
if (StringUtils.isNotBlank(ret)) {
|
|
|
JSONObject json = JSONObject.parseObject(ret);
|
|
|
-
|
|
|
- json.getJSONArray("registration_ids").forEach(item -> removeIds.add(item.toString()));
|
|
|
+ JSONArray registrationIds = json.getJSONArray("registration_ids");
|
|
|
+ if (CollectionUtils.isNotEmpty(registrationIds)) {
|
|
|
+ for (Object item : registrationIds) {
|
|
|
+ if (item != null) {
|
|
|
+ removeIds.add(item.toString());
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
}
|
|
|
} catch (Exception e) {
|
|
|
throw new ThirdpartyException("deviceRemoveAlias 查询别名绑定设备", e);
|