POI multiselection: fix exception if selected filters string is empty on program start
This commit is contained in:
parent
1acc561d38
commit
93a42d60af
1 changed files with 1 additions and 1 deletions
|
@ -2336,7 +2336,7 @@ public class OsmandSettings {
|
|||
public Set<String> getSelectedPoiFilters() {
|
||||
Set<String> result = new LinkedHashSet<>();
|
||||
String filtersId = SELECTED_POI_FILTER_FOR_MAP.get();
|
||||
if (filtersId != null) {
|
||||
if (filtersId != null && !filtersId.isEmpty()) {
|
||||
Collections.addAll(result, filtersId.split(","));
|
||||
}
|
||||
return result;
|
||||
|
|
Loading…
Reference in a new issue