supl/locationsuplfw/gateway/src/epos_csuplserver.cpp
changeset 22 4c4ed41530db
parent 0 667063e416a2
child 32 b12ea03c50a3
--- a/supl/locationsuplfw/gateway/src/epos_csuplserver.cpp	Mon May 03 12:54:42 2010 +0300
+++ b/supl/locationsuplfw/gateway/src/epos_csuplserver.cpp	Fri May 14 16:17:02 2010 +0300
@@ -142,8 +142,8 @@
     // Settings
     TInt keyValue;
     TInt err = KErrNone;
-    
-    CRepository* repository = CRepository::NewL(KCRUidSuplConfiguration);
+    CRepository* repository = NULL;
+    TRAP(err, repository = CRepository::NewL(KCRUidSuplConfiguration));
     CleanupStack::PushL(repository);
     
     if (err != KErrNone)