diff --git a/src/BirdsiteLive.Twitter/CachedTwitterService.cs b/src/BirdsiteLive.Twitter/CachedTwitterService.cs index 3b2de8d..2f0be46 100644 --- a/src/BirdsiteLive.Twitter/CachedTwitterService.cs +++ b/src/BirdsiteLive.Twitter/CachedTwitterService.cs @@ -33,7 +33,7 @@ namespace BirdsiteLive.Twitter if (!_userCache.TryGetValue(username, out TwitterUser user)) { user = _twitterService.GetUser(username); - _userCache.Set(username, user, _cacheEntryOptions); + if(user != null) _userCache.Set(username, user, _cacheEntryOptions); } return user;