Details
-
Bug
-
Status: Closed
-
Critical
-
Resolution: Fixed
-
1.4
-
None
-
None
-
None
-
Operating System: All
Platform: All
-
14620
Description
please move the line
log.debug( ... + bean.getClass()... )
to a position AFTER the check for ( bean == null ).
currently, the following code in BeanUtils.java throws an exception when bean == null and logLevel == debug
--------------------------------------------------
public static Map describe(Object bean)
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()); }