javamanager/javaregistry/client/src/writeablejavaregistry.cpp
changeset 50 023eef975703
parent 21 2a9601315dfc
child 83 26b2b12093af
--- a/javamanager/javaregistry/client/src/writeablejavaregistry.cpp	Tue Jul 06 20:36:19 2010 +0300
+++ b/javamanager/javaregistry/client/src/writeablejavaregistry.cpp	Fri Jul 09 16:35:45 2010 +0300
@@ -363,9 +363,17 @@
 
                 if (KErrNotFound == err)
                 {
+                    // reset the error flag
+                    err = KErrNone;
                     if (IsPresent((*iter)))
                     {
-                        aUids.Append(uid);
+                        err = aUids.Append(uid);
+                    }
+                    if (err)
+                    {
+                        ELOG1(EJavaStorage, "Failed to add Uid to container. "
+                              "( error code = %d )", err);
+
                     }
                 }
             }
@@ -414,7 +422,7 @@
             }
         }
     }
-    catch (ExceptionBase)
+    catch (ExceptionBase& ee)
     {
         ELOG1WSTR(EJavaStorage, "MediaId conversion failed: '%s'", value);
     }