mmsengine/mmsmessage/src/mmsheaders.cpp
changeset 2 0bf1d54f37d9
parent 0 72b543305e3a
child 26 ebe688cedc25
--- a/mmsengine/mmsmessage/src/mmsheaders.cpp	Thu Jan 07 12:45:05 2010 +0200
+++ b/mmsengine/mmsmessage/src/mmsheaders.cpp	Mon Jan 18 20:16:40 2010 +0200
@@ -351,14 +351,16 @@
         stream.AssignLC( aStore, KUidMmsApplicationInfoStream ); // pushes 'stream' to the stack
         length = ApplicId().Length();
         stream.WriteInt32L( length );
-        if ( length > 0 )
+        // Coverty fix, Forward NULL , http://ousrv057/cov.cgi?cid=35556
+        if ( length > 0 && iApplicationId )
             {
             stream << iApplicationId->Des();
             }
         
         length = ReplyApplicId().Length();
         stream.WriteInt32L( length );
-        if ( length > 0 )
+        // Coverty fix, Forward NULL , http://ousrv057/cov.cgi?cid=35559
+        if ( length > 0 && iReplyToApplicationId )
             {
             stream << iReplyToApplicationId->Des();
             }
@@ -387,14 +389,16 @@
 
         length = RecommendedRetrievalModeText().Length();
         stream.WriteInt32L( length );
-        if ( length > 0 )
+        // Coverty fix, Forward NULL , http://ousrv057/cov.cgi?cid=35557
+        if ( length > 0 && iRecommendedRetrievalModeText )
             {
             stream << iRecommendedRetrievalModeText->Des();
             }
             
         length = ReplaceCancelId().Length();
         stream.WriteInt32L( length );
-        if ( length > 0 )
+        // Coverty fix, Forward NULL , http://ousrv057/cov.cgi?cid=35558
+        if ( length > 0 && iReplaceCancelId )
             {
             stream << iReplaceCancelId->Des();
             }