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

getLocationsByTag should be null-safe

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: Should
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: Core 2.4.1, Core 2.5.0
    • Component/s: None
    • Labels:
      None
    • Complexity:
      Low

      Description

      The getLocationsByTag method in LocationService should be null-safe in the case that getTags for a location returns null.

      ie, this line should be changed to have a check that getTags() != null

      https://github.com/openmrs/openmrs-core/blob/master/api/src/main/java/org/openmrs/api/impl/LocationServiceImpl.java#L210

      This should be backported to 2.3.x

        Gliffy Diagrams

          Attachments

            Activity

              People

              Assignee:
              cioan Cosmin Ioan
              Reporter:
              mogoodrich Mark Goodrich
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: