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

getLocationsByTag should be null-safe

    XMLWordPrintable

Details

    • Enhancement
    • Status: Closed
    • Should
    • Resolution: Fixed
    • None
    • Core 2.4.1, Core 2.5.0
    • None
    • None
    • 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

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

              Dates

                Created:
                Updated:
                Resolved: