Fixed - RMap.getAll() method throws IndexOutOfBoundsException #5490

pull/5520/head
Nikita Koksharov 1 year ago
parent bbe6753e73
commit daa4310412

@ -47,10 +47,10 @@ public class MapGetAllDecoder implements MultiDecoder<Map<Object, Object>> {
@Override @Override
public Map<Object, Object> decode(List<Object> parts, State state) { public Map<Object, Object> decode(List<Object> parts, State state) {
if (parts.isEmpty()) { if (parts.isEmpty()) {
return new HashMap<Object, Object>(); return new HashMap<>();
} }
Map<Object, Object> result = new LinkedHashMap<Object, Object>(parts.size()); Map<Object, Object> result = new LinkedHashMap<>(parts.size());
for (int index = 0; index < args.size()-shiftIndex; index++) { for (int index = 0; index < parts.size()-shiftIndex; index++) {
Object value = parts.get(index); Object value = parts.get(index);
if (!allowNulls && value == null) { if (!allowNulls && value == null) {
continue; continue;

Loading…
Cancel
Save