Fixing null pointer exception for custom oauth grant types
@@ -35,8 +35,10 @@ public class IdentityServiceProviderCacheKey extends CacheKey {
*/
public IdentityServiceProviderCacheKey(String serviceProviderName, String tenantDomain) {
this.serviceProviderKey = serviceProviderName;
+ if (tenantDomain != null) {
this.tenantDomain = tenantDomain.toLowerCase();
}
+ }
/**
* @return
