Fixed - SlotsDecoder throws NPE on empty result

pull/5676/head
Nikita Koksharov 11 months ago
parent 920c65e43c
commit 0e2bc2928f

@ -42,7 +42,7 @@ public class SlotsDecoder implements MultiDecoder<Object> {
@Override
public Object decode(List<Object> parts, State state) {
if (parts.get(0) instanceof List) {
if (!parts.isEmpty() && parts.get(0) instanceof List) {
Map<ClusterSlotRange, Set<String>> result = new HashMap<>();
List<List<Object>> rows = (List<List<Object>>) (Object) parts;
for (List<Object> row : rows) {

Loading…
Cancel
Save