You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Xandra McCoy (Jira)" <ji...@apache.org> on 2021/06/04 14:36: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 ]

Xandra McCoy updated LANG-1654:
-------------------------------
    Attachment: image.png

> 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.*
>    Affects Versions: 2.6
>            Reporter: zalak pathak
>            Priority: Major
>              Labels: Lang3, StringUtils
>         Attachments: image-2021-03-31-16-51-10-002.png, image-2021-03-31-17-15-47-453.png, image.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.
> !image-2021-03-31-17-15-47-453.png!
> 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)