mmsengine/mmsmessage/src/mmsheaders.cpp
changeset 25 84d9eb65b26f
parent 23 238255e8b033
child 47 5b14749788d7
child 79 2981cb3aa489
--- a/mmsengine/mmsmessage/src/mmsheaders.cpp	Fri Apr 16 14:56:15 2010 +0300
+++ b/mmsengine/mmsmessage/src/mmsheaders.cpp	Mon May 03 12:29:07 2010 +0300
@@ -351,21 +351,21 @@
         stream.AssignLC( aStore, KUidMmsApplicationInfoStream ); // pushes 'stream' to the stack
         length = ApplicId().Length();
         stream.WriteInt32L( length );
-        if ( length > 0 )
+        if ( length > 0 && iApplicationId )
             {
             stream << iApplicationId->Des();
             }
         
         length = ReplyApplicId().Length();
         stream.WriteInt32L( length );
-        if ( length > 0 )
+        if ( length > 0 && iReplyToApplicationId )
             {
             stream << iReplyToApplicationId->Des();
             }
         
         length = AuxApplicInfo().Length();
         stream.WriteInt32L( length );
-        if ( length > 0 )
+        if ( length > 0 && iApplicationInfo )
             {
             stream << iApplicationInfo->Des();
             }
@@ -387,14 +387,14 @@
 
         length = RecommendedRetrievalModeText().Length();
         stream.WriteInt32L( length );
-        if ( length > 0 )
+        if ( length > 0 && iRecommendedRetrievalModeText )
             {
             stream << iRecommendedRetrievalModeText->Des();
             }
             
         length = ReplaceCancelId().Length();
         stream.WriteInt32L( length );
-        if ( length > 0 )
+        if ( length > 0 && iReplaceCancelId )
             {
             stream << iReplaceCancelId->Des();
             }