From fb6eded30cb298e603cd2bda617939afdd99afc4 Mon Sep 17 00:00:00 2001 From: hasuniea Date: Fri, 23 Sep 2016 22:27:34 +0530 Subject: [PATCH] fixed device lock issue --- .../mobile/windows/api/operations/util/OperationHandler.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/java/org/wso2/carbon/device/mgt/mobile/windows/api/operations/util/OperationHandler.java b/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/java/org/wso2/carbon/device/mgt/mobile/windows/api/operations/util/OperationHandler.java index 4b1bbaa7b..9c0417fb5 100644 --- a/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/java/org/wso2/carbon/device/mgt/mobile/windows/api/operations/util/OperationHandler.java +++ b/components/mobile-plugins/windows-plugin/org.wso2.carbon.device.mgt.mobile.windows.api/src/main/java/org/wso2/carbon/device/mgt/mobile/windows/api/operations/util/OperationHandler.java @@ -77,8 +77,8 @@ public class OperationHandler { } } else if (Constants.SyncMLResponseCodes.PIN_NOTFOUND.equals(status.getData())) { for (Operation operation : pendingDataOperations) { - if (operation.getId() == status.getCommandReference() && (OperationCode.Command.DEVICE_LOCK.equals( - operation.getCode()))) { + if (operation.getId() == status.getCommandReference() && + (PluginConstants.OperationCodes.DEVICE_LOCK.equals(operation.getCode()))) { operation.setStatus(Operation.Status.ERROR); if (syncmlDocument.getHeader().getSource().getLocURI() != null) { updateStatus(syncmlDocument.getHeader().getSource().getLocURI(), pendingDataOperations); @@ -485,5 +485,6 @@ public class OperationHandler { throw new WindowsOperationException("Error occurred while getting effective policy.", e); } } + } }