Uploaded image for project: 'Commons Lang'
  1. Commons Lang
  2. LANG-1654

isAnyBlank method of StringUtils doesn't do null check

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.6
    • 3.12.0
    • lang.*

    Description

      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

       

       

      Let me know in case of any query.

       

      Attachments

        1. image-2021-03-31-16-51-10-002.png
          13 kB
          zalak pathak
        2. image-2021-03-31-17-15-47-453.png
          13 kB
          zalak pathak
        3. image.png
          13 kB
          xandrakmccoy

        Activity

          People

            Unassigned Unassigned
            zmpathak zalak pathak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: