From 6c643b81a66e420c44561cde68169d9cbafbf9c1 Mon Sep 17 00:00:00 2001 From: Pahansith Date: Sat, 23 May 2020 12:20:52 +0530 Subject: [PATCH] Fix issue in policy creation --- .../mgt/jaxrs/service/impl/util/RequestValidationUtil.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/util/RequestValidationUtil.java b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/util/RequestValidationUtil.java index 98871ee2b5..01d5f6bb92 100644 --- a/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/util/RequestValidationUtil.java +++ b/components/device-mgt/org.wso2.carbon.device.mgt.api/src/main/java/org/wso2/carbon/device/mgt/jaxrs/service/impl/util/RequestValidationUtil.java @@ -348,8 +348,12 @@ public class RequestValidationUtil { return enrollmentNotifier.validate(features); case Constants.IOS: //todo + features = new ArrayList<>(); + break; case Constants.WINDOWS: //todo + features = new ArrayList<>(); + break; default: log.error("No policy validator found for device type " + deviceType); break;