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

NPE lowerCase and upperCase when locale is null

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      When the parameter Local is null where are getting NPE in the following method:

      • upperCase
      • lowerCase

       

      Add control 

       

      if (locale == null) { 
         throw new IllegalArgumentException("Locale must not be null"); 
      }
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            arturobernalg Arturo Bernal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m