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

NPE lowerCase and upperCase when locale is null

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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

            • Assignee:
              Unassigned
              Reporter:
              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