--- 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 )