Uploaded image for project: 'OpenMRS Core'
  1. OpenMRS Core
  2. TRUNK-4848

NullPointerException at org.openmrs.web.WebUtil#normalizeLocale()

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Could
    • Resolution: Fixed
    • Platform 1.11.5
    • Core 2.1.0
    • None
    • Low

    Description

      org.openmrs.web.WebUtil#NormailizeLocale() is supposed to remove control characters contained in the argument 'localeString' and return a normalized string that only contains ASCII letters (including the '' character). However, NormailizeLocale() will throw a NullPointerException when the argument, 'localeString' is "".

      In org.openmrs.web.WebUtil#NormailizeLocale() the following comment further indicates that this method should not throw an exception when it receives "_" as its input.
      Line 305: // allow only ASCII letters and "_" character

      Gliffy Diagrams

        Attachments

          Activity

            People

              ldf92 Dengfeng Li
              ldf92 Dengfeng Li
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - 1 hour
                  1h
                  Remaining:
                  Remaining Estimate - 1 hour
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified