minor fix

This commit is contained in:
Massimiliano Assante 2023-09-29 17:44:32 +02:00
parent 2cd6c13712
commit cf100591eb
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ public class SocialNetworkingSiteFinder {
if(scope == null || scope.isEmpty()) if(scope == null || scope.isEmpty())
throw new IllegalArgumentException("Scope cannot be null/empty"); 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(); return (SocialNetworkingSite) socialSitesCache.get(scope).getObjectValue();
else{ else{
SocialNetworkingSite site = discoverSite(scope); SocialNetworkingSite site = discoverSite(scope);