Merge branch 'master' of https://gitlab.com/entgra/carbon-device-mgt-plugins into application-mgt-new

This commit is contained in:
lasanthaDLPDS 2019-12-08 20:24:55 +05:30
commit 7a33d8a499

View File

@ -711,7 +711,7 @@ public class AndroidDeviceUtils {
JsonElement googlePolicyPayload = appElement.getAsJsonObject().
get(AndroidConstants.ApplicationInstall.GOOGLE_POLICY_PAYLOAD);
if (googlePolicyPayload == null) {
if (googlePolicyPayload == null || googlePolicyPayload.toString().equals("\"\"")) {
uuid = appElement.getAsJsonObject().
get(AndroidConstants.ApplicationInstall.ENROLLMENT_APP_INSTALL_UUID).getAsString();
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {