mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
Merge branch 'GroupNameCase' into 'master'
Fix Null pointer exception in group management See merge request entgra/carbon-device-mgt!265
This commit is contained in:
commit
6f21f472b6
@ -40,8 +40,12 @@ public class GroupManagementAdminServiceImpl implements GroupManagementAdminServ
|
||||
try {
|
||||
RequestValidationUtil.validatePaginationParameters(offset, limit);
|
||||
GroupPaginationRequest request = new GroupPaginationRequest(offset, limit);
|
||||
if (name != null){
|
||||
request.setGroupName(name.toUpperCase());
|
||||
}
|
||||
if (owner != null) {
|
||||
request.setOwner(owner.toUpperCase());
|
||||
}
|
||||
PaginationResult deviceGroupsResult = DeviceMgtAPIUtils.getGroupManagementProviderService()
|
||||
.getGroups(request);
|
||||
DeviceGroupList deviceGroupList = new DeviceGroupList();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user