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
public Map<Object, Object> decode(List<Object> parts, State state) {
if (parts.isEmpty()) {
return new HashMap<Object, Object>();
return new HashMap<>();
}
Map<Object, Object> result = new LinkedHashMap<Object, Object>(parts.size());
for (int index = 0; index < args.size()-shiftIndex; index++) {
Map<Object, Object> result = new LinkedHashMap<>(parts.size());
for (int index = 0; index < parts.size()-shiftIndex; index++) {
Object value = parts.get(index);
if (!allowNulls && value == null) {
continue;

Loading…
Cancel
Save