donaldp     2002/10/03 18:04:52

  Modified:    info/src/java/org/apache/avalon/framework/tools/infobuilder
                        XMLInfoCreator.java
  Log:
  Deal with a missing name
  
  Revision  Changes    Path
  1.14      +2 -2      
jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/tools/infobuilder/XMLInfoCreator.java
  
  Index: XMLInfoCreator.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-avalon-excalibur/info/src/java/org/apache/avalon/framework/tools/infobuilder/XMLInfoCreator.java,v
  retrieving revision 1.13
  retrieving revision 1.14
  diff -u -r1.13 -r1.14
  --- XMLInfoCreator.java       3 Oct 2002 02:55:09 -0000       1.13
  +++ XMLInfoCreator.java       4 Oct 2002 01:04:52 -0000       1.14
  @@ -558,8 +558,8 @@
       private ComponentDescriptor buildComponentDescriptor( final Configuration 
config )
           throws ConfigurationException
       {
  -        final String name = config.getAttribute( "name", null );
           final String type = config.getAttribute( "type" );
  +        final String name = config.getAttribute( "name", type );
           final Attribute[] attributes = buildAttributes( config );
   
           return new ComponentDescriptor( name, type, attributes );
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to