Fixed crash on null paths cache

Monotone-Parent: 738bb5934b9505acd57737d65ba73eb95e8a9379
Monotone-Revision: 07da2515c4d2be88823f4531db65f3d4d995acdc

Monotone-Author: ludovic@Sophos.ca
Monotone-Date: 2012-02-14T15:51:23
maint-2.0.2
Ludovic Marcotte 2012-02-14 15:51:23 +00:00
parent 8c5021e3d0
commit 486c7115fb
1 changed files with 1 additions and 1 deletions

View File

@ -215,7 +215,7 @@ static memcached_st *handle = NULL;
inContainer: [container container]];
fullPath = [self _pathFromObject: container
withName: name];
if (![cache objectForKey: fullPath])
if (fullPath && ![cache objectForKey: fullPath])
{
[cache setObject: object forKey: fullPath];
}