mirror of
https://repository.entgra.net/community/device-mgt-plugins.git
synced 2025-09-16 23:42:15 +00:00
Added null checks for empty regid scenarios as a fix for MDM-396
This commit is contained in:
parent
889598c3b3
commit
fc7776d736
@ -123,6 +123,9 @@ public class GCMUtil {
|
||||
//Set device reg-ids
|
||||
JsonArray regIds = new JsonArray();
|
||||
for (String regId : registrationIds) {
|
||||
if (regId == null && regId.isEmpty()) {
|
||||
continue;
|
||||
}
|
||||
regIds.add(new JsonPrimitive(regId));
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user