messagingfw/senduiservices/src/SendUiImpl.cpp
branchRCL_3
changeset 10 e174c577e901
parent 9 dd93350a5f29
child 12 8147bfb6c710
--- a/messagingfw/senduiservices/src/SendUiImpl.cpp	Mon Mar 15 12:42:29 2010 +0200
+++ b/messagingfw/senduiservices/src/SendUiImpl.cpp	Wed Mar 31 22:25:10 2010 +0300
@@ -1393,6 +1393,13 @@
             aMessageData->AttachmentHandleArray(),
             iCoeEnv->FsSession() );
         cleanupItems += 2;
+        
+        if ( attachments->Count() == 0 )
+		     {
+		     //there are no attachments, so no point in checking the file rights at all.
+		     CleanupStack::PopAndDestroy( cleanupItems );
+		     return ETrue;    
+		     }
         }   
     fileRightsEngine->ConfirmDrmFileRightsL( attachments );
     if ( attachments->Count() <= 0 )