diff --git a/src/xercesc/framework/psvi/XSModel.cpp b/src/xercesc/framework/psvi/XSModel.cpp
index 3d6420c6f0ffbc5a99f88174b911801d795addd8..e75461abf54292dad62dcc8c8e0a6838c8ecc894 100644
--- a/src/xercesc/framework/psvi/XSModel.cpp
+++ b/src/xercesc/framework/psvi/XSModel.cpp
@@ -56,6 +56,9 @@
 
 /*
  * $Log$
+ * Revision 1.12  2003/12/13 23:35:28  neilg
+ * fix bug 25494; thanks to Han Ming
+ *
  * Revision 1.11  2003/12/01 20:41:47  neilg
  * do not throw an exception if there is no user-defined registry
  *
@@ -574,7 +577,7 @@ XSNamedMap <XSObject> *XSModel::getComponentsByNamespace(XSConstants::COMPONENT_
         namespaceItem = getNamespaceItem(emptyString);
     
     if (namespaceItem)
-        namespaceItem->getComponents(objectType);
+        return namespaceItem->getComponents(objectType);
 
     return 0;
 }