rdonkin     2002/11/19 12:20:08

  Modified:    beanutils/src/java/org/apache/commons/beanutils
                        BeanUtils.java
  Log:
  Fixed bug #14620. Fix proposed by larry hamel.
  
  Revision  Changes    Path
  1.27      +9 -7      
jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java
  
  Index: BeanUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-commons/beanutils/src/java/org/apache/commons/beanutils/BeanUtils.java,v
  retrieving revision 1.26
  retrieving revision 1.27
  diff -u -r1.26 -r1.27
  --- BeanUtils.java    21 Jul 2002 00:20:44 -0000      1.26
  +++ BeanUtils.java    19 Nov 2002 20:20:08 -0000      1.27
  @@ -395,13 +395,15 @@
               throws IllegalAccessException, InvocationTargetException,
               NoSuchMethodException {
   
  -        if (log.isDebugEnabled()) {
  -            log.debug("Describing bean: " + bean.getClass().getName());
  -        }
           if (bean == null) {
           //            return (Collections.EMPTY_MAP);
               return (new java.util.HashMap());
           }
  +        
  +        if (log.isDebugEnabled()) {
  +            log.debug("Describing bean: " + bean.getClass().getName());
  +        }
  +            
           Map description = new HashMap();
           if (bean instanceof DynaBean) {
               DynaProperty descriptors[] =
  
  
  

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

Reply via email to