messagingfw/msgsrvnstore/server/src/MCLENTRY.CPP
changeset 41 0abbef78e78b
parent 34 b66b8f3a7fd8
--- a/messagingfw/msgsrvnstore/server/src/MCLENTRY.CPP	Tue Aug 03 21:08:41 2010 +0530
+++ b/messagingfw/msgsrvnstore/server/src/MCLENTRY.CPP	Wed Aug 18 01:39:51 2010 +0530
@@ -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;
 	}