diff -r e7635922c074 -r 0abbef78e78b messagingfw/msgsrvnstore/server/src/msvindexadapter.cpp --- a/messagingfw/msgsrvnstore/server/src/msvindexadapter.cpp Tue Aug 03 21:08:41 2010 +0530 +++ b/messagingfw/msgsrvnstore/server/src/msvindexadapter.cpp Wed Aug 18 01:39:51 2010 +0530 @@ -432,7 +432,7 @@ iServer.Log(_L("Cache initialized succesfully.")); #endif - TMsvId tmpNextId = NULL; + TMsvId tmpNextId = 0; iDbAdapter->GetMaxTMsvIdL(tmpNextId); iNextCreateId = (tmpNextId >= KFirstFreeEntryId)? (tmpNextId+1) : KFirstFreeEntryId;