Small fix for region search

This commit is contained in:
PaulStets 2018-05-06 12:14:29 +03:00
parent 0db4ad0e10
commit c6c9853396

View file

@ -853,7 +853,7 @@ public class ResourceManager {
}
public AmenityIndexRepositoryBinary getWikiRepositoryByRegionName(String name) {
if (name == null)
if (name == null || name.isEmpty())
return null;
for (String filename : amenityRepositories.keySet()) {
if ((filename.contains("_wiki")