You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@avalon.apache.org by Anton Tagunov <at...@mail.cnt.ru> on 2003/04/30 01:44:16 UTC

[PATCH] bug 19448 (NPE possible from DefaultComponentFactory)

Hello, Developers!

Have got a bunch of minor patches :-)

19448: NPE possible from DefaultComponentFactory
http://issues.apache.org/bugzilla/show_bug.cgi?id=19448

There's also a testcase!

- Anton


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org


[PATCH] oops again..

Posted by Anton Tagunov <at...@mail.cnt.ru>.
diff -ur avalon-excalibur.0/component/src/java/org/apache/avalon/excalibur/component/DefaultComponentFactory.java avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/DefaultComponentFactory.java
--- avalon-excalibur.0/component/src/java/org/apache/avalon/excalibur/component/DefaultComponentFactory.java    2003-04-05 23:39:34.000000000 +0400
+++ avalon-excalibur/component/src/java/org/apache/avalon/excalibur/component/DefaultComponentFactory.java      2003-04-28 14:52:46.000000000 +0400
@@ -307,7 +307,7 @@
             ( (RoleManageable)component ).setRoleManager( m_roles );
         }
 
-        if( component instanceof LogKitManageable )
+        if( component instanceof LogKitManageable && m_loggerManager != null )
         {
             ( (LogKitManageable)component ).setLogKitManager( m_loggerManager.getLogKitManager() );
         }


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@avalon.apache.org
For additional commands, e-mail: dev-help@avalon.apache.org