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

isAnyBlank method of StringUtils doesn't do null check

Attach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment