--- a/messagingfw/msgsrvnstore/server/src/MCLENTRY.CPP Wed Aug 18 10:15:32 2010 +0300
+++ b/messagingfw/msgsrvnstore/server/src/MCLENTRY.CPP Thu Sep 02 20:55:53 2010 +0300
@@ -1,4 +1,4 @@
-// Copyright (c) 1998-2009 Nokia Corporation and/or its subsidiary(-ies).
+// Copyright (c) 1998-2010 Nokia Corporation and/or its subsidiary(-ies).
// All rights reserved.
// This component and the accompanying materials are made available
// under the terms of "Eclipse Public License v1.0"
@@ -2788,13 +2788,20 @@
//
{
TInt count = aSelection.Count();
- while (count--)
- {
- if (!IsAChild(aSelection.At(count)))
- {
- return EFalse;
- }
- }
+ if(!count)
+ {
+ return EFalse;
+ }
+ else
+ {
+ while (count--)
+ {
+ if (!IsAChild(aSelection.At(count)))
+ {
+ return EFalse;
+ }
+ }
+ }
return ETrue;
}