diff --git a/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java b/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java index ee1959480394..01034e4150ec 100644 --- a/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java +++ b/components/application-mgt/org.wso2.carbon.identity.application.mgt/src/main/java/org/wso2/carbon/identity/application/mgt/ApplicationManagementServiceImpl.java @@ -186,7 +186,7 @@ public ServiceProvider createApplicationWithTemplate(ServiceProvider serviceProv } for (ApplicationMgtListener listener : listeners) { - if (listener.isEnable() && !listener.doPreCreateApplication(serviceProvider, tenantDomain, username)) { + if (listener.isEnable() && !listener.doPostCreateApplication(serviceProvider, tenantDomain, username)) { log.error("Post create application operation of listener:" + getName(listener) + " failed for " + "application: " + serviceProvider.getApplicationName() + " of tenantDomain: " + tenantDomain); break;