You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "zalak pathak (Jira)" <ji...@apache.org> on 2021/03/31 11:27:00 UTC

[jira] [Updated] (LANG-1654) isAnyBlank method of StringUtils doesn't do null check

     [ https://issues.apache.org/jira/browse/LANG-1654?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

zalak pathak updated LANG-1654:
-------------------------------
    Component/s: lang.*
         Labels: Lang3 StringUtils  (was: )

> isAnyBlank method of StringUtils doesn't do null check
> ------------------------------------------------------
>
>                 Key: LANG-1654
>                 URL: https://issues.apache.org/jira/browse/LANG-1654
>             Project: Commons Lang
>          Issue Type: Bug
>          Components: lang.*
>            Reporter: zalak pathak
>            Priority: Major
>              Labels: Lang3, StringUtils
>         Attachments: image-2021-03-31-16-51-10-002.png
>
>
> my string-a is null. i tried calling StringUtis.isNoneBlank(a) method which gives true when string a is null.
> i debugged it and found that isNoneBlank() in turn calls isAnyBlank() method which gives false when the string a is null.
> and in isNoneBlank() method ,it returns ! isAnyBlank(css) so it gives me true where it should give false.
> We have used commonsLangVersion = '2.6' version in gradle and the package imported is org.apache.commons.lang3
>  
> !image-2021-03-31-16-51-10-002.png!
>  
> Let me know in case of any query.
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)