Fix search for 1-digit houses

This commit is contained in:
Victor Shcherb 2017-04-13 19:42:49 +02:00
parent ab58aee4ad
commit 504d7a86bf

View file

@ -639,7 +639,7 @@ public class SearchPhrase {
List<String> unknownSearchWords = getUnknownSearchWords();
String wordToSearch = "";
if (getUnknownSearchWordLength() > 1) {
if (unknownSearchWords.size() > 0) {
List<String> searchWords = new ArrayList<>(unknownSearchWords);
searchWords.add(0, getUnknownSearchWord());
Collections.sort(searchWords, new Comparator<String>() {