minor fix
This commit is contained in:
parent
2cd6c13712
commit
cf100591eb
|
@ -90,7 +90,7 @@ public class SocialNetworkingSiteFinder {
|
|||
if(scope == null || scope.isEmpty())
|
||||
throw new IllegalArgumentException("Scope cannot be null/empty");
|
||||
|
||||
if(socialSitesCache.get(scope) != null)
|
||||
if(socialSitesCache != null && socialSitesCache.get(scope) != null)
|
||||
return (SocialNetworkingSite) socialSitesCache.get(scope).getObjectValue();
|
||||
else{
|
||||
SocialNetworkingSite site = discoverSite(scope);
|
||||
|
|
Loading…
Reference in New Issue