diff -r 7e0cc21eb164 -r 5872ac9a5671 ximpfw/presence/srcpresencecache/presencecacheserver/presencecachesession.cpp --- a/ximpfw/presence/srcpresencecache/presencecacheserver/presencecachesession.cpp Fri Apr 16 15:16:51 2010 +0300 +++ b/ximpfw/presence/srcpresencecache/presencecacheserver/presencecachesession.cpp Mon May 03 12:49:16 2010 +0300 @@ -740,8 +740,11 @@ CleanupStack::Pop(serviceStore); } buddyStore = CPresenceCacheBuddyStore::NewLC(serviceStore,identity); - err = serviceStore->AddBlind(buddyStore); //ownership transferred - CleanupStack::Pop(buddyStore); + if(buddyStore) + { + err = serviceStore->AddBlind(buddyStore); //ownership transferred + CleanupStack::Pop(buddyStore); + } CleanupStack::Pop(identity); } else