From 486c7115fb7b30daab31b14afbd6c71ceab8398b Mon Sep 17 00:00:00 2001 From: Ludovic Marcotte Date: Tue, 14 Feb 2012 15:51:23 +0000 Subject: [PATCH] Fixed crash on null paths cache Monotone-Parent: 738bb5934b9505acd57737d65ba73eb95e8a9379 Monotone-Revision: 07da2515c4d2be88823f4531db65f3d4d995acdc Monotone-Author: ludovic@Sophos.ca Monotone-Date: 2012-02-14T15:51:23 --- SoObjects/SOGo/SOGoCache.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/SoObjects/SOGo/SOGoCache.m b/SoObjects/SOGo/SOGoCache.m index b3ecd694e..7ede34230 100644 --- a/SoObjects/SOGo/SOGoCache.m +++ b/SoObjects/SOGo/SOGoCache.m @@ -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]; }