datacommsserver/esockserver/ssock/ss_rmetaextensioncontainer.cpp
changeset 79 cf589eb1e31e
parent 0 dfb7c4ff071f
--- a/datacommsserver/esockserver/ssock/ss_rmetaextensioncontainer.cpp	Fri Sep 17 08:36:26 2010 +0300
+++ b/datacommsserver/esockserver/ssock/ss_rmetaextensioncontainer.cpp	Mon Oct 04 02:21:43 2010 +0300
@@ -67,15 +67,24 @@
 
 EXPORT_C const Meta::SMetaData* RMetaExtensionContainerC::FindExtension(const Meta::STypeId& aTypeId) const
     {
-    __ASSERT_ALWAYS(iContainerImpl, PanicMec(ENoImplementation));
-    return iContainerImpl->FindExtension(aTypeId);
+    if (Container())
+        {
+        return Container()->FindExtension(aTypeId);
+        }
+    else
+        {
+        return NULL;
+        }
     }
 
 
 EXPORT_C const Meta::SMetaData& RMetaExtensionContainerC::FindExtensionL(const Meta::STypeId& aTypeId) const
     {
-    __ASSERT_ALWAYS(iContainerImpl, PanicMec(ENoImplementation));
-    return iContainerImpl->FindExtensionL(aTypeId);
+    if (!Container())
+        {
+        User::Leave(KErrNotFound);
+        }
+    return Container()->FindExtensionL(aTypeId);
     }