diff --git a/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/dao/IdPManagementDAO.java b/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/dao/IdPManagementDAO.java index e610e2b251e4..d79cc2a44259 100644 --- a/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/dao/IdPManagementDAO.java +++ b/components/idp-mgt/org.wso2.carbon.idp.mgt/src/main/java/org/wso2/carbon/idp/mgt/dao/IdPManagementDAO.java @@ -2184,11 +2184,13 @@ public ProvisioningConnectorConfig[] getProvisioningConnectorConfigs(Connection String blobValue = getBlobValue(rs2.getBinaryStream("PROPERTY_BLOB_VALUE")); String propertyType = rs2.getString("PROPERTY_TYPE"); + if (propertyType != null) { + propertyType = propertyType.trim(); + } String isSecret = rs2.getString("IS_SECRET"); property.setName(name); - if (propertyType != null && IdentityApplicationConstants.ConfigElements. - PROPERTY_TYPE_BLOB.equals(propertyType.trim())) { + if (IdentityApplicationConstants.ConfigElements.PROPERTY_TYPE_BLOB.equals(propertyType)) { property.setValue(blobValue); } else { property.setValue(value);