homescreenpluginsrv/hspsodt/src/hspsodt.cpp
changeset 3 ff572005ac23
parent 0 79c6a41cd166
child 11 bd874ee5e5e2
--- a/homescreenpluginsrv/hspsodt/src/hspsodt.cpp	Mon Jan 18 20:32:13 2010 +0200
+++ b/homescreenpluginsrv/hspsodt/src/hspsodt.cpp	Tue Jan 26 12:11:15 2010 +0200
@@ -450,12 +450,15 @@
 	TInt count = aStream.ReadInt32L();
 	for (TInt i=0;i<count;i++)
 		{
-		ChspsResource* resource = ChspsResource::NewL();
-       	CleanupStack::PushL(resource);
-       	resource->InternalizeL(aStream);
-       	iResourceList->AppendL( resource );
-       	CleanupStack::Pop( resource ); // now owned by array
-       	resource = NULL;
+        ChspsResource* resource = ChspsResource::NewL();
+        CleanupStack::PushL(resource);
+        resource->InternalizeL(aStream);
+       	if ( iResourceList )
+       	    {
+       	    iResourceList->AppendL( resource );
+       	    }
+        CleanupStack::Pop( resource ); // now owned by array
+        resource = NULL;
 		}
     }
 
@@ -722,6 +725,10 @@
         {
         clone->SetPackageVersionL( *iPackageVersion );
         }
+    if( iDescription )
+        {
+        clone->SetDescriptionL( *iDescription );
+        }
     clone->SetOdtLanguage( iLanguage );
     clone->SetFlags( iFlags );