RED-7141: Fixed endless processing when only one character on page
This commit is contained in:
parent
b0efac0b36
commit
fc43bccf60
@ -18,7 +18,7 @@ public class NearestNeighbourService {
|
|||||||
|
|
||||||
public void findNearestNeighbors(List<Character> characters) {
|
public void findNearestNeighbors(List<Character> characters) {
|
||||||
|
|
||||||
if (characters.isEmpty()) {
|
if (characters.isEmpty() || characters.size() == 1) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user