Check the null before adding
@@ -837,11 +837,14 @@ public class ApplicationManagementServiceImpl extends ApplicationManagementServi
.getAuthenticationScriptConfig();
serviceProvider.getLocalAndOutBoundAuthenticationConfig()
.setAuthenticationSteps(authenticationSteps);
- serviceProvider.getLocalAndOutBoundAuthenticationConfig().setAuthenticationScriptConfig(scriptConfig);
+ if (scriptConfig != null) {
+ serviceProvider.getLocalAndOutBoundAuthenticationConfig()
+ .setAuthenticationScriptConfig(scriptConfig);
serviceProvider.getLocalAndOutBoundAuthenticationConfig()
.setAuthenticationType(ApplicationConstants.AUTH_TYPE_FLOW);
}
}
+ }
if (serviceProvider == null && serviceProviderName != null && ApplicationManagementServiceComponent
.getFileBasedSPs().containsKey(serviceProviderName)) {
