Fix search for 1-digit houses

This commit is contained in:
Victor Shcherb 2017-04-13 19:42:49 +02:00
parent 734d75c60e
commit 0a0321bbd5

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>() {