POI multiselection: fix exception if selected filters string is empty on program start

This commit is contained in:
Roman Inflianskas 2016-04-28 12:00:20 +03:00
parent 1acc561d38
commit 93a42d60af

View file

@ -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;