[prev in list] [next in list] [prev in thread] [next in thread] 

List:       jakarta-commons-dev
Subject:    [jira] [Updated] (LANG-1654) isAnyBlank method of StringUtils doesn't do null check
From:       "zalak pathak (Jira)" <jira () apache ! org>
Date:       2021-03-31 13:36:00
Message-ID: JIRA.13368856.1617189794000.171480.1617197760249 () Atlassian ! JIRA
[Download RAW message or body]


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

zalak pathak updated LANG-1654:
-------------------------------
    Affects Version/s: 2.6

> 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
> 
> 
> 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)


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic