omadmadapters/fota/src/nsmldmfotaadapter.cpp
changeset 59 b7be70e619ea
parent 42 aa33c2cb9a50
child 67 fdbfe0a95492
--- a/omadmadapters/fota/src/nsmldmfotaadapter.cpp	Wed Aug 18 09:39:31 2010 +0300
+++ b/omadmadapters/fota/src/nsmldmfotaadapter.cpp	Thu Sep 02 20:16:47 2010 +0300
@@ -287,13 +287,15 @@
 
     CBufBase* acl=CBufFlat::NewL(10);
     CleanupStack::PushL( acl );
-    session.GetAclL( KNSmlDMFotaNode,*acl,EFalse );
-
-    if( acl->Size() == 0 )
+    TInt err = session.GetAclL( KNSmlDMFotaNode,*acl,EFalse );
+		if ( err == KErrNone)
+		{
+    	if( acl->Size() == 0 )
         {
         _LIT8(KACLForAll, "Add=*&Get=*&Delete=*&Exec=*&Replace=*");
         session.UpdateAclL( KNSmlDMFotaNode, KACLForAll);
         }
+    }
     CleanupStack::PopAndDestroy( acl );
     CleanupStack::PopAndDestroy( &session );