minor fix

This commit is contained in:
Massimiliano Assante 2023-09-29 17:52:51 +02:00
parent cf100591eb
commit 0c4c8d61d1
1 changed files with 1 additions and 1 deletions

View File

@ -94,7 +94,7 @@ public class SocialNetworkingSiteFinder {
return (SocialNetworkingSite) socialSitesCache.get(scope).getObjectValue(); return (SocialNetworkingSite) socialSitesCache.get(scope).getObjectValue();
else{ else{
SocialNetworkingSite site = discoverSite(scope); SocialNetworkingSite site = discoverSite(scope);
if(site != null) if(socialSitesCache != null && site != null)
socialSitesCache.put(new Element(scope, site)); socialSitesCache.put(new Element(scope, site));
return site; return site;
} }