niall       2005/08/22 09:31:15

  Modified:    src/Repository/Hierarchy XmlHierarchyConfigurator.cs
  Log:
  Fix for LOG4NET-43. Handles empty string properties by creating an empty 
string rather than attempting to construct one.
  
  Revision  Changes    Path
  1.18      +9 -1      
logging-log4net/src/Repository/Hierarchy/XmlHierarchyConfigurator.cs
  
  Index: XmlHierarchyConfigurator.cs
  ===================================================================
  RCS file: 
/home/cvs/logging-log4net/src/Repository/Hierarchy/XmlHierarchyConfigurator.cs,v
  retrieving revision 1.17
  retrieving revision 1.18
  diff -u -r1.17 -r1.18
  --- XmlHierarchyConfigurator.cs       15 Jun 2005 17:54:21 -0000      1.17
  +++ XmlHierarchyConfigurator.cs       22 Aug 2005 16:31:15 -0000      1.18
  @@ -732,7 +732,15 @@
                                                defaultObjectType = 
propertyType;

                                        }

   

  -                                     object createdObject = 
CreateObjectFromXml(element, defaultObjectType, propertyType);

  +                                     object createdObject;

  +                                     if 
(propertyType==System.Type.GetType("System.String"))

  +                                     {

  +                                             createdObject="";

  +                                     }

  +                                     else

  +                                     {

  +                                             createdObject = 
CreateObjectFromXml(element, defaultObjectType, propertyType);

  +                                     }

   

                                        if (createdObject == null)

                                        {

  
  
  

Reply via email to