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