diff --git a/components/application-mgt/org.wso2.carbon.identity.application.common/src/main/java/org/wso2/carbon/identity/application/common/dao/impl/AuthenticatorManagementDAOImpl.java b/components/application-mgt/org.wso2.carbon.identity.application.common/src/main/java/org/wso2/carbon/identity/application/common/dao/impl/AuthenticatorManagementDAOImpl.java index f6807c2a742e..43ce0d66a246 100644 --- a/components/application-mgt/org.wso2.carbon.identity.application.common/src/main/java/org/wso2/carbon/identity/application/common/dao/impl/AuthenticatorManagementDAOImpl.java +++ b/components/application-mgt/org.wso2.carbon.identity.application.common/src/main/java/org/wso2/carbon/identity/application/common/dao/impl/AuthenticatorManagementDAOImpl.java @@ -132,7 +132,8 @@ public List getAllUserDefinedLocalAuthentic config.setDisplayName(resultSet.getString(Column.DISPLAY_NAME)); config.setEnabled(resultSet.getString(Column.IS_ENABLED).equals(IS_TRUE_VALUE)); config.setDefinedByType(DefinedByType.valueOf(resultSet.getString(Column.DEFINED_BY))); - return authenticatorConfigMap.put(resultSet.getInt(Column.ID), config); + authenticatorConfigMap.put(resultSet.getInt(Column.ID), config); + return null; }, statement -> { statement.setString(Column.DEFINED_BY, DefinedByType.USER.toString()); @@ -171,7 +172,7 @@ public void deleteUserDefinedLocalAuthenticator(String authenticatorConfigName, } private UserDefinedLocalAuthenticatorConfig getUserDefinedLocalAuthenticatorByName(String authenticatorConfigName, - int tenantId) throws AuthenticatorMgtServerException, TransactionException { + int tenantId) throws TransactionException { NamedJdbcTemplate jdbcTemplate = new NamedJdbcTemplate(IdentityDatabaseUtil.getDataSource()); UserDefinedLocalAuthenticatorConfig retrievedConfigs = null; @@ -185,7 +186,8 @@ private UserDefinedLocalAuthenticatorConfig getUserDefinedLocalAuthenticatorByNa config.setDisplayName(resultSet.getString(Column.DISPLAY_NAME)); config.setEnabled(resultSet.getString(Column.IS_ENABLED).equals(IS_TRUE_VALUE)); config.setDefinedByType(DefinedByType.USER); - return authenticatorConfigMap.put(resultSet.getInt(Column.ID), config); + authenticatorConfigMap.put(resultSet.getInt(Column.ID), config); + return null; }, statement -> { statement.setString(Column.NAME, authenticatorConfigName);