You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Gary D. Gregory (Jira)" <ji...@apache.org> on 2020/12/22 13:31:00 UTC
[jira] [Commented] (LANG-1630) NPE lowerCase and upperCase when
locale is null
[ https://issues.apache.org/jira/browse/LANG-1630?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17253497#comment-17253497 ]
Gary D. Gregory commented on LANG-1630:
---------------------------------------
This was implemented differently FYI.
> NPE lowerCase and upperCase when locale is null
> ------------------------------------------------
>
> Key: LANG-1630
> URL: https://issues.apache.org/jira/browse/LANG-1630
> Project: Commons Lang
> Issue Type: Bug
> Reporter: Arturo Bernal
> Priority: Major
> Time Spent: 20m
> Remaining Estimate: 0h
>
> When the parameter Local is null where are getting NPE in the following method:
> * upperCase
> * lowerCase
>
> Add control
>
> {code:java}
> if (locale == null) {
> throw new IllegalArgumentException("Locale must not be null");
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)