getLocationsByTag should be null-safe

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

Activity

Show:
Fixed

Details

Assignee

Reporter

Complexity

Low

Priority

Created May 4, 2021 at 9:43 PM
Updated May 5, 2021 at 3:55 PM
Resolved May 5, 2021 at 2:52 PM