Skip to content

Commit

Permalink
(fix) check cache before using it (fixes #3988)
Browse files Browse the repository at this point in the history
  • Loading branch information
extrafu committed Jun 22, 2017
1 parent 362d6d5 commit 7f00afc
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion SoObjects/SOGo/SOGoGCSFolder.m
Expand Up @@ -432,7 +432,9 @@ - (GCSFolder *) ocsFolderForPath: (NSString *) _path
cache = [SOGoCache sharedCache];
record = [[cache valueForKey: _path] objectFromJSONString];

if (!record)
// We check if we got a cache miss or a potentially bogus
// entry from the cache
if (!record || ![record objectForKey: @"c_folder_type"])
{
record = [[self folderManager] recordAtPath: _path];

Expand Down

0 comments on commit 7f00afc

Please sign in to comment.