bloritsch 2003/05/29 14:09:29
Modified: fortress/src/java/org/apache/avalon/fortress/impl
AbstractContainer.java
Log:
Fix problem when a component depends on a component not managed by this container.
Revision Changes Path
1.34 +8 -1
avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/AbstractContainer.java
Index: AbstractContainer.java
===================================================================
RCS file:
/home/cvs/avalon-excalibur/fortress/src/java/org/apache/avalon/fortress/impl/AbstractContainer.java,v
retrieving revision 1.33
retrieving revision 1.34
diff -u -r1.33 -r1.34
--- AbstractContainer.java 29 May 2003 17:14:45 -0000 1.33
+++ AbstractContainer.java 29 May 2003 21:09:28 -0000 1.34
@@ -729,6 +729,13 @@
while ( dit.hasNext() )
{
Map deps = (Map) m_mapper.get( dit.next() );
+
+ /* Ignore for now... It is probably due to a component requiring a
Container
+ * component.... This happens when a required Service is not
_directly_ handled
+ * by this container.
+ */
+ if ( null == deps ) continue;
+
Iterator mdit = deps.entrySet().iterator();
while ( mdit.hasNext() )
{
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]