MapKeyDecoder and MapValueDecoder called in wrong order. #258

pull/365/head
Nikita 9 years ago
parent b9df357760
commit 9468dd6fc0

@ -328,9 +328,9 @@ public class CommandDecoder extends ReplayingDecoder<State> {
if (decoder == null) { if (decoder == null) {
if (data.getCommand().getOutParamType() == ValueType.MAP) { if (data.getCommand().getOutParamType() == ValueType.MAP) {
if (parts.size() % 2 != 0) { if (parts.size() % 2 != 0) {
decoder = data.getCodec().getMapKeyDecoder();
} else {
decoder = data.getCodec().getMapValueDecoder(); decoder = data.getCodec().getMapValueDecoder();
} else {
decoder = data.getCodec().getMapKeyDecoder();
} }
} else if (data.getCommand().getOutParamType() == ValueType.MAP_KEY) { } else if (data.getCommand().getOutParamType() == ValueType.MAP_KEY) {
decoder = data.getCodec().getMapKeyDecoder(); decoder = data.getCodec().getMapKeyDecoder();

Loading…
Cancel
Save