Код: Выделить всё
private Info getInfo(String key) {
List infoList = new ArrayList();
redisClient.read(key)
.doOnSuccess(System.out::println)
.map(infoList::add)
.subscribe();
return infoList.get(0);
}
Код: Выделить всё
java.lang.IndexOutOfBoundsException: Index 0 out of bounds for length 0
at java.base/jdk.internal.util.Preconditions.outOfBounds(Preconditions.java:64)
Источник: https://stackoverflow.com/questions/781 ... od-returns
Мобильная версия