zalak pathak created LANG-1654:
----------------------------------

             Summary: 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
            Reporter: zalak pathak
         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)

Reply via email to