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

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

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Could
    • Resolution: Fixed
    • Affects Version/s: Platform 1.11.5
    • Fix Version/s: Core 2.1.0
    • Component/s: None
    • Labels:
    • Complexity:
      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

            Attachments-Category-Modification

              Activity

                People

                • Assignee:
                  ldf92 Dengfeng Li
                  Reporter:
                  ldf92 Dengfeng Li
                  Watchers:
                  Daniel Kayiwa, 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