diff -r 3533d4323edc -r 968773a0b6ef emailservices/emailframework/src/CFSMailBrandManagerImpl.cpp --- a/emailservices/emailframework/src/CFSMailBrandManagerImpl.cpp Wed Sep 01 12:28:57 2010 +0100 +++ b/emailservices/emailframework/src/CFSMailBrandManagerImpl.cpp Tue Sep 14 20:48:24 2010 +0300 @@ -409,7 +409,7 @@ CFSMailBrand* CFSMailBrandManagerImpl::FindMatchingBrandL( const TDesC& aBrandId ) { FUNC_LOG; - if( aBrandId.Length() ) + if( ( NULL != &aBrandId ) && aBrandId.Length() ) { TInt brandCount( iBrands->Count() ); for ( TInt i( 0 ); i < brandCount; i++ )