From 9eec100535747b5d134eac9a881078e05c9bdd92 Mon Sep 17 00:00:00 2001 From: ayyoob Date: Thu, 28 Jul 2016 15:46:06 +0530 Subject: [PATCH] fixed formatting issues --- .../device/mgt/iot/devicetype/DeviceTypeConfigServiceImpl.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot/src/main/java/org/wso2/carbon/device/mgt/iot/devicetype/DeviceTypeConfigServiceImpl.java b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot/src/main/java/org/wso2/carbon/device/mgt/iot/devicetype/DeviceTypeConfigServiceImpl.java index 113015fce..fbdc9b37f 100644 --- a/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot/src/main/java/org/wso2/carbon/device/mgt/iot/devicetype/DeviceTypeConfigServiceImpl.java +++ b/components/iot-plugins/iot-base-plugin/org.wso2.carbon.device.mgt.iot/src/main/java/org/wso2/carbon/device/mgt/iot/devicetype/DeviceTypeConfigServiceImpl.java @@ -34,7 +34,7 @@ public class DeviceTypeConfigServiceImpl implements DeviceTypeConfigService { String deviceType = deviceManagementConfiguration.getDeviceType(); String tenantDomain = deviceManagementConfiguration.getDeviceManagementConfigRepository() .getProvisioningConfig().getTenantDomain(); - if ( deviceType != null && !deviceType.isEmpty() && tenantDomain != null + if (deviceType != null && !deviceType.isEmpty() && tenantDomain != null && !tenantDomain.isEmpty()) { deviceTypeConfigurationMap.put(new DeviceTypeConfigIdentifier(deviceType, tenantDomain), deviceManagementConfiguration);