LocaleConvertUtilsBean.convert throws NPE on null Locale when debug logging is 
enabled
--------------------------------------------------------------------------------------

                 Key: BEANUTILS-306
                 URL: https://issues.apache.org/jira/browse/BEANUTILS-306
             Project: Commons BeanUtils
          Issue Type: Bug
          Components: Locale BeanUtils / Converters
    Affects Versions: 1.8.0-BETA, 1.7.0
            Reporter: Lucian Chirita
            Priority: Minor


LocaleConvertUtilsBean.convert(String value, Class clazz, Locale locale, String 
pattern) generally works with a null Locale argument, as the lookup(Locale 
locale) method checks whether the argument is null and uses the default locale 
in that case.

However, if debug logging is enabled for LocaleConvertUtils, the method throws 
NullPointerException on null locale because the debug message does 
locale.toString().

The same thing happens with the convert(String values[], Class clazz, Locale 
locale, String pattern) method.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to